Class: Caldera::Events::TrackException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, player) ⇒ TrackException

Returns a new instance of TrackException.



30
31
32
33
34
# File 'lib/caldera/events.rb', line 30

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



28
29
30
# File 'lib/caldera/events.rb', line 28

def error
  @error
end

#playerObject (readonly)

Returns the value of attribute player.



28
29
30
# File 'lib/caldera/events.rb', line 28

def player
  @player
end

#trackObject (readonly)

Returns the value of attribute track.



28
29
30
# File 'lib/caldera/events.rb', line 28

def track
  @track
end