Class: FreeMusicArchive::Client
- Inherits:
-
Object
- Object
- FreeMusicArchive::Client
- Defined in:
- lib/freemusicarchive/client.rb,
lib/freemusicarchive/client/albums.rb,
lib/freemusicarchive/client/genres.rb,
lib/freemusicarchive/client/tracks.rb,
lib/freemusicarchive/client/artists.rb,
lib/freemusicarchive/client/curators.rb
Defined Under Namespace
Modules: Albums, Artists, Curators, Genres, Tracks
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ FreeMusicArchive::Client
constructor
Initializes a new API object.
Methods included from Tracks
Methods included from Genres
Methods included from Curators
Methods included from Artists
Methods included from Albums
Methods included from Request
Constructor Details
#initialize(attrs = {}) ⇒ FreeMusicArchive::Client
Initializes a new API object
22 23 24 25 26 27 |
# File 'lib/freemusicarchive/client.rb', line 22 def initialize(attrs={}) attrs = FreeMusicArchive..merge(attrs) Configuration::VALID_OPTIONS_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, attrs[key]) end end |