Class: SimpleSpotify::Model::Track
- Inherits:
-
Object
- Object
- SimpleSpotify::Model::Track
- Includes:
- Resource
- Defined in:
- lib/simplespotify/models/track.rb
Instance Method Summary collapse
Methods included from Resource
Instance Method Details
#duration ⇒ Object
21 22 23 |
# File 'lib/simplespotify/models/track.rb', line 21 def duration Time.at(@duration_ms/1000).utc.strftime("%H:%M:%S") end |
#playable? ⇒ Boolean
25 26 27 |
# File 'lib/simplespotify/models/track.rb', line 25 def playable? playable == true end |