Class: Logbook::Duration
- Inherits:
-
Struct
- Object
- Struct
- Logbook::Duration
- Defined in:
- lib/logbook.rb
Instance Attribute Summary collapse
-
#minutes ⇒ Object
Returns the value of attribute minutes.
Instance Method Summary collapse
Instance Attribute Details
#minutes ⇒ Object
Returns the value of attribute minutes
14 15 16 |
# File 'lib/logbook.rb', line 14 def minutes @minutes end |
Instance Method Details
#+(other_duration) ⇒ Object
15 16 17 |
# File 'lib/logbook.rb', line 15 def +(other_duration) Duration.new(self.minutes + other_duration.minutes) end |