Module: Nestling

Defined in:
lib/nestling.rb,
lib/nestling/base.rb,
lib/nestling/hash.rb,
lib/nestling/song.rb,
lib/nestling/track.rb,
lib/nestling/artist.rb,
lib/nestling/client.rb,
lib/nestling/errors.rb,
lib/nestling/version.rb,
lib/nestling/playlist.rb,
lib/nestling/collection.rb

Defined Under Namespace

Modules: Version Classes: AccessDeniedError, Artist, Base, Client, Collection, Error, Hash, InvalidAPIKeyError, InvalidParameterError, MissingParameterError, Playlist, RateLimitExceededError, Song, Track, UnknownError

Constant Summary collapse

ERRNO =
{
 -1 => UnknownError,
  1 => InvalidAPIKeyError,
  2 => AccessDeniedError,
  3 => RateLimitExceededError,
  4 => MissingParameterError,
  5 => InvalidParameterError
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



27
28
29
# File 'lib/nestling.rb', line 27

def api_key
  @api_key
end

Class Method Details

.new(*args) ⇒ Object



29
30
31
# File 'lib/nestling.rb', line 29

def new(*args)
  Nestling::Client.new(*args[0])
end