Module: Echowrap

Extended by:
Configurable
Defined in:
lib/echowrap.rb,
lib/echowrap/base.rb,
lib/echowrap/blog.rb,
lib/echowrap/feed.rb,
lib/echowrap/item.rb,
lib/echowrap/meta.rb,
lib/echowrap/rule.rb,
lib/echowrap/song.rb,
lib/echowrap/term.rb,
lib/echowrap/urls.rb,
lib/echowrap/asset.rb,
lib/echowrap/error.rb,
lib/echowrap/genre.rb,
lib/echowrap/image.rb,
lib/echowrap/seeds.rb,
lib/echowrap/track.rb,
lib/echowrap/video.rb,
lib/echowrap/artist.rb,
lib/echowrap/client.rb,
lib/echowrap/review.rb,
lib/echowrap/status.rb,
lib/echowrap/default.rb,
lib/echowrap/license.rb,
lib/echowrap/options.rb,
lib/echowrap/sandbox.rb,
lib/echowrap/version.rb,
lib/echowrap/analysis.rb,
lib/echowrap/api/song.rb,
lib/echowrap/location.rb,
lib/echowrap/playlist.rb,
lib/echowrap/api/oauth.rb,
lib/echowrap/api/track.rb,
lib/echowrap/api/utils.rb,
lib/echowrap/biography.rb,
lib/echowrap/call_list.rb,
lib/echowrap/keyvalues.rb,
lib/echowrap/reference.rb,
lib/echowrap/api/artist.rb,
lib/echowrap/doc_counts.rb,
lib/echowrap/foreign_id.rb,
lib/echowrap/hotttnesss.rb,
lib/echowrap/prediction.rb,
lib/echowrap/rate_limit.rb,
lib/echowrap/api/sandbox.rb,
lib/echowrap/echonest_id.rb,
lib/echowrap/familiarity.rb,
lib/echowrap/update_info.rb,
lib/echowrap/api/playlist.rb,
lib/echowrap/category_map.rb,
lib/echowrap/configurable.rb,
lib/echowrap/item_request.rb,
lib/echowrap/news_article.rb,
lib/echowrap/years_active.rb,
lib/echowrap/audio_summary.rb,
lib/echowrap/taste_profile.rb,
lib/echowrap/sequenced_data.rb,
lib/echowrap/error/forbidden.rb,
lib/echowrap/error/not_found.rb,
lib/echowrap/api/taste_profile.rb,
lib/echowrap/error/bad_gateway.rb,
lib/echowrap/error/bad_request.rb,
lib/echowrap/error/client_error.rb,
lib/echowrap/error/server_error.rb,
lib/echowrap/error/unauthorized.rb,
lib/echowrap/sequenced_data/bar.rb,
lib/echowrap/response/parse_json.rb,
lib/echowrap/sequenced_data/beat.rb,
lib/echowrap/error/not_acceptable.rb,
lib/echowrap/response/raise_error.rb,
lib/echowrap/sequenced_data/tatum.rb,
lib/echowrap/error/gateway_timeout.rb,
lib/echowrap/sequenced_data/section.rb,
lib/echowrap/sequenced_data/segment.rb,
lib/echowrap/error/too_many_requests.rb,
lib/echowrap/error/configuration_error.rb,
lib/echowrap/error/service_unavailable.rb,
lib/echowrap/error/unprocessable_entity.rb,
lib/echowrap/error/internal_server_error.rb,
lib/echowrap/request/multipart_with_file.rb

Defined Under Namespace

Modules: API, Configurable, Default, Request, Response Classes: Analysis, Artist, Asset, AudioSummary, Bar, Base, Beat, Biography, Blog, CallList, CategoryMap, Client, DocCounts, EchonestId, Error, Familiarity, Feed, ForeignId, Genre, Hotttnesss, Image, Item, ItemRequest, Keyvalues, License, Location, Meta, NewsArticle, Options, Playlist, Prediction, RateLimit, Reference, Review, Rule, Sandbox, Section, Seeds, Segment, SequencedData, Song, Status, TasteProfile, Tatum, Term, Track, UpdateInfo, Urls, Version, Video, YearsActive

Instance Attribute Summary

Attributes included from Configurable

#api_key, #connection_options, #consumer_key, #endpoint, #middleware, #shared_secret

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, credentials?, keys, reset!

Class Method Details

.clientEchowrap::Client

Delegate to a Echowrap::Client

Returns:



61
62
63
64
# File 'lib/echowrap.rb', line 61

def client
  @client = Echowrap::Client.new(options) unless defined?(@client) && @client.hash == options.hash
  @client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


67
# File 'lib/echowrap.rb', line 67

def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


66
# File 'lib/echowrap.rb', line 66

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end