summaryrefslogtreecommitdiff
path: root/app/models/user.rb
blob: 7085ac251f4d46f34ba4a7ffdf63a56bc3933c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class User
  attr_reader :company

  def initialize(company: nil)
    @company = company
  end

  def apply_for(well_type, location)
    license = License.new
    license.company = company
    license.well_type = well_type
    license.location = location
    license.applicant = self
    license
  end
end