summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 22:27:13 -0700
committermo khan <mo@mokhan.ca>2014-02-21 22:27:13 -0700
commit60aa8fa77deaf9d4c90c1ede37caeeff13ee283d (patch)
tree2e2783442eb09d58e4257bf4f256ecc4ce25aa6b /app/models/user.rb
parent476bee1ff1e1c0d4fe553898f5f029530a41919c (diff)
define well types table.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb16
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