Class: CrankChange

Inherits:
Object
  • Object
show all
Defined in:
lib/trixter/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#elapsedObject

Returns the value of attribute elapsed.



77
78
79
# File 'lib/trixter/event.rb', line 77

def elapsed
  @elapsed
end

#ticksObject

Returns the value of attribute ticks.



77
78
79
# File 'lib/trixter/event.rb', line 77

def ticks
  @ticks
end

#timeObject

Returns the value of attribute time.



77
78
79
# File 'lib/trixter/event.rb', line 77

def time
  @time
end