Class: Caldera::Events::TrackStart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#playerObject (readonly)

Returns the value of attribute player.



8
9
10
# File 'lib/caldera/events.rb', line 8

def player
  @player
end

#trackObject (readonly)

Returns the value of attribute track.



8
9
10
# File 'lib/caldera/events.rb', line 8

def track
  @track
end