Class: Caldera::Events::TrackException
- Inherits:
-
Object
- Object
- Caldera::Events::TrackException
- Defined in:
- lib/caldera/events.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#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) ⇒ TrackException
constructor
A new instance of TrackException.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
28 29 30 |
# File 'lib/caldera/events.rb', line 28 def error @error end |
#player ⇒ Object (readonly)
Returns the value of attribute player.
28 29 30 |
# File 'lib/caldera/events.rb', line 28 def player @player end |
#track ⇒ Object (readonly)
Returns the value of attribute track.
28 29 30 |
# File 'lib/caldera/events.rb', line 28 def track @track end |