summaryrefslogtreecommitdiff
path: root/app/models/hearth_planting.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/hearth_planting.rb')
-rw-r--r--app/models/hearth_planting.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/hearth_planting.rb b/app/models/hearth_planting.rb
new file mode 100644
index 0000000..d6ae714
--- /dev/null
+++ b/app/models/hearth_planting.rb
@@ -0,0 +1,9 @@
+class HearthPlanting < ApplicationRecord
+ belongs_to :hearth
+ belongs_to :item
+
+ def ripens_at
+ created_at + item.whatnot[:ripen_duration][:base].seconds
+ end
+end
+