Class: Caldera::Events::TrackStart
- Inherits:
-
Object
- Object
- Caldera::Events::TrackStart
- Defined in:
- lib/caldera/events.rb
Instance Attribute Summary collapse
-
#player ⇒ Object
readonly
Returns the value of attribute player.
-
#track ⇒ Object
readonly
Returns the value of attribute track.
Instance Method Summary collapse
-
#initialize(data, player) ⇒ TrackStart
constructor
A new instance of TrackStart.
Constructor Details
#initialize(data, player) ⇒ TrackStart
Returns a new instance of TrackStart.
10 11 12 13 |
# File 'lib/caldera/events.rb', line 10 def initialize(data, player) @player = player @track = Caldera::Model::Track.from_b64(data['track']) end |
Instance Attribute Details
#player ⇒ Object (readonly)
Returns the value of attribute player.
8 9 10 |
# File 'lib/caldera/events.rb', line 8 def player @player end |
#track ⇒ Object (readonly)
Returns the value of attribute track.
8 9 10 |
# File 'lib/caldera/events.rb', line 8 def track @track end |