Class: Soundcloud9000::Models::Playlist
- Inherits:
-
Object
- Object
- Soundcloud9000::Models::Playlist
- Defined in:
- lib/soundcloud9000/models/playlist.rb
Overview
stores information on a playlist or set from soundcloud
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(hash) ⇒ Playlist
constructor
A new instance of Playlist.
- #title ⇒ Object
- #uri ⇒ Object
Constructor Details
#initialize(hash) ⇒ Playlist
Returns a new instance of Playlist.
5 6 7 |
# File 'lib/soundcloud9000/models/playlist.rb', line 5 def initialize(hash) @hash = hash end |
Instance Method Details
#id ⇒ Object
9 10 11 |
# File 'lib/soundcloud9000/models/playlist.rb', line 9 def id @hash['id'] end |
#title ⇒ Object
13 14 15 |
# File 'lib/soundcloud9000/models/playlist.rb', line 13 def title @hash['title'] end |
#uri ⇒ Object
17 18 19 |
# File 'lib/soundcloud9000/models/playlist.rb', line 17 def uri @hash['uri'] end |