Class: Soundcloud2000::Models::Playlist

Inherits:
Object
  • Object
show all
Defined in:
lib/soundcloud2000/models/playlist.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Playlist

Returns a new instance of Playlist.



5
6
7
# File 'lib/soundcloud2000/models/playlist.rb', line 5

def initialize(hash)
  @hash = hash
end

Instance Method Details

#idObject



9
10
11
# File 'lib/soundcloud2000/models/playlist.rb', line 9

def id
  @hash['id']
end

#titleObject



13
14
15
# File 'lib/soundcloud2000/models/playlist.rb', line 13

def title
  @hash['title']
end

#uriObject



17
18
19
# File 'lib/soundcloud2000/models/playlist.rb', line 17

def uri
  @hash['uri']
end