Class: Caldera::Events::TrackStuck

Inherits:
Object
  • Object
show all
Defined in:
lib/caldera/events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, player) ⇒ TrackStuck

Returns a new instance of TrackStuck.



40
41
42
43
44
# File 'lib/caldera/events.rb', line 40

def initialize(data, player)
  @player = player
  @threshold = data['thresholdMs']
  @track = Caldera::Model::Track.from_b64(data['track'])
end

Instance Attribute Details

#playerObject (readonly)

Returns the value of attribute player.



38
39
40
# File 'lib/caldera/events.rb', line 38

def player
  @player
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



38
39
40
# File 'lib/caldera/events.rb', line 38

def threshold
  @threshold
end

#trackObject (readonly)

Returns the value of attribute track.



38
39
40
# File 'lib/caldera/events.rb', line 38

def track
  @track
end