Class: Caldera::Events::TrackStuck
- Inherits:
-
Object
- Object
- Caldera::Events::TrackStuck
- Defined in:
- lib/caldera/events.rb
Instance Attribute Summary collapse
-
#player ⇒ Object
readonly
Returns the value of attribute player.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
-
#track ⇒ Object
readonly
Returns the value of attribute track.
Instance Method Summary collapse
-
#initialize(data, player) ⇒ TrackStuck
constructor
A new instance of TrackStuck.
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
#player ⇒ Object (readonly)
Returns the value of attribute player.
38 39 40 |
# File 'lib/caldera/events.rb', line 38 def player @player end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
38 39 40 |
# File 'lib/caldera/events.rb', line 38 def threshold @threshold end |
#track ⇒ Object (readonly)
Returns the value of attribute track.
38 39 40 |
# File 'lib/caldera/events.rb', line 38 def track @track end |