Class: SimpleSpotify::Model::PlayEvent
- Inherits:
-
Object
- Object
- SimpleSpotify::Model::PlayEvent
- Includes:
- Resource
- Defined in:
- lib/simplespotify/models/playevent.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ PlayEvent
constructor
A new instance of PlayEvent.
Methods included from Resource
Constructor Details
#initialize(data) ⇒ PlayEvent
Returns a new instance of PlayEvent.
12 13 14 15 |
# File 'lib/simplespotify/models/playevent.rb', line 12 def initialize data data[:played_at] = Time.parse(data[:played_at]) if data[:played_at].is_a? String super data end |