Module: Habits::Event
- Included in:
- Habits::Events::Activity
- Defined in:
- lib/habits/event.rb
Instance Attribute Summary collapse
-
#applied_at ⇒ Object
readonly
Returns the value of attribute applied_at.
Instance Method Summary collapse
Instance Attribute Details
#applied_at ⇒ Object (readonly)
Returns the value of attribute applied_at.
4 5 6 |
# File 'lib/habits/event.rb', line 4 def applied_at @applied_at end |
Instance Method Details
#apply(habit, time = Time.now) ⇒ Object
6 7 8 |
# File 'lib/habits/event.rb', line 6 def apply(habit, time=Time.now) @applied_at = time end |