Class: TimeEntry
- Inherits:
-
Struct
- Object
- Struct
- TimeEntry
- Defined in:
- lib/harvest_overtime/structs.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#hours ⇒ Object
Returns the value of attribute hours.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
13 14 15 |
# File 'lib/harvest_overtime/structs.rb', line 13 def date @date end |
#hours ⇒ Object
Returns the value of attribute hours
13 14 15 |
# File 'lib/harvest_overtime/structs.rb', line 13 def hours @hours end |
Instance Method Details
#month ⇒ Object
14 15 16 |
# File 'lib/harvest_overtime/structs.rb', line 14 def month Month.new(date.year, date.month) end |