diff options
Diffstat (limited to 'app/models/user.rb')
| -rw-r--r-- | app/models/user.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..7085ac2 --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,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 |
