Module: FreeMusicArchive
- Extended by:
- Configuration
- Defined in:
- lib/freemusicarchive.rb,
lib/freemusicarchive/error.rb,
lib/freemusicarchive/client.rb,
lib/freemusicarchive/request.rb,
lib/freemusicarchive/version.rb,
lib/freemusicarchive/client/albums.rb,
lib/freemusicarchive/client/genres.rb,
lib/freemusicarchive/client/tracks.rb,
lib/freemusicarchive/configuration.rb,
lib/freemusicarchive/client/artists.rb,
lib/freemusicarchive/client/curators.rb
Defined Under Namespace
Modules: Configuration, Request Classes: BadRequest, Client, Error, InternalServerError, InvalidSignature, NotFound, ServiceUnavailable
Constant Summary collapse
- VERSION =
'0.0.1'
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.client(options = {}) ⇒ FreeMusicArchive::Client
Alias for FreeMusicArchive::Client.new.
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to FreeMusicArchive::Client.
-
.respond_to?(method) ⇒ Boolean
Delegate to FreeMusicArchive::Client.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.client(options = {}) ⇒ FreeMusicArchive::Client
Alias for FreeMusicArchive::Client.new
13 14 15 |
# File 'lib/freemusicarchive.rb', line 13 def client (={}) FreeMusicArchive::Client.new() end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to FreeMusicArchive::Client
18 19 20 21 |
# File 'lib/freemusicarchive.rb', line 18 def method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end |
.respond_to?(method) ⇒ Boolean
Delegate to FreeMusicArchive::Client
24 25 26 |
# File 'lib/freemusicarchive.rb', line 24 def respond_to?(method) return client.respond_to?(method) || super end |