Class: QuakeliveApi::GameTime::Interval
- Inherits:
-
Struct
- Object
- Struct
- QuakeliveApi::GameTime::Interval
- Defined in:
- lib/quakelive_api/game_time.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
Returns the value of attribute days.
-
#hours ⇒ Object
Returns the value of attribute hours.
-
#minutes ⇒ Object
Returns the value of attribute minutes.
-
#seconds ⇒ Object
Returns the value of attribute seconds.
Instance Method Summary collapse
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days
5 6 7 |
# File 'lib/quakelive_api/game_time.rb', line 5 def days @days end |
#hours ⇒ Object
Returns the value of attribute hours
5 6 7 |
# File 'lib/quakelive_api/game_time.rb', line 5 def hours @hours end |
#minutes ⇒ Object
Returns the value of attribute minutes
5 6 7 |
# File 'lib/quakelive_api/game_time.rb', line 5 def minutes @minutes end |
#seconds ⇒ Object
Returns the value of attribute seconds
5 6 7 |
# File 'lib/quakelive_api/game_time.rb', line 5 def seconds @seconds end |
Instance Method Details
#total ⇒ Object
6 7 8 |
# File 'lib/quakelive_api/game_time.rb', line 6 def total members.sum { |m| send(m).send(m) } # see what I did there? end |