Class: Worked::Entry
- Inherits:
-
Struct
- Object
- Struct
- Worked::Entry
- Defined in:
- lib/worked/reader.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
11 12 13 |
# File 'lib/worked/reader.rb', line 11 def date @date end |
#hours ⇒ Object
Returns the value of attribute hours
11 12 13 |
# File 'lib/worked/reader.rb', line 11 def hours @hours end |
Instance Method Details
#<=>(other) ⇒ Object
16 17 18 |
# File 'lib/worked/reader.rb', line 16 def <=> other self.date <=> other.date end |
#week_of_year ⇒ Object
12 13 14 |
# File 'lib/worked/reader.rb', line 12 def week_of_year date.week_of_year end |