Class: CrankChange
- Inherits:
-
Object
- Object
- CrankChange
- Defined in:
- lib/trixter/event.rb
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#ticks ⇒ Object
Returns the value of attribute ticks.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(ticks, time, elapsed) ⇒ CrankChange
constructor
A new instance of CrankChange.
Constructor Details
#initialize(ticks, time, elapsed) ⇒ CrankChange
Returns a new instance of CrankChange.
78 79 80 81 82 |
# File 'lib/trixter/event.rb', line 78 def initialize(ticks, time, elapsed) @ticks = ticks @time = time @elapsed = elapsed end |
Instance Attribute Details
#elapsed ⇒ Object
Returns the value of attribute elapsed.
77 78 79 |
# File 'lib/trixter/event.rb', line 77 def elapsed @elapsed end |
#ticks ⇒ Object
Returns the value of attribute ticks.
77 78 79 |
# File 'lib/trixter/event.rb', line 77 def ticks @ticks end |
#time ⇒ Object
Returns the value of attribute time.
77 78 79 |
# File 'lib/trixter/event.rb', line 77 def time @time end |