module Echowrap::Default
Constants
- CONNECTION_OPTIONS
- ENDPOINT
- IDENTITY_MAP
- MIDDLEWARE
Public Class Methods
api_key()
click to toggle source
@return [String]
# File lib/echowrap/default.rb, line 54 def api_key ENV['ECHONEST_API_KEY'] end
connection_options()
click to toggle source
# File lib/echowrap/default.rb, line 74 def connection_options CONNECTION_OPTIONS end
consumer_key()
click to toggle source
@return [String]
# File lib/echowrap/default.rb, line 59 def consumer_key ENV['ECHONEST_CONSUMER_KEY'] end
endpoint()
click to toggle source
@note This is configurable in case you want to use a Echowrap-compatible endpoint. @return [String]
# File lib/echowrap/default.rb, line 70 def endpoint ENDPOINT end
middleware()
click to toggle source
@note Faraday’s middleware stack implementation is comparable to that of Rack middleware. The order of middleware is important: the first middleware on the list wraps all others, while the last middleware is the innermost one. @see github.com/technoweenie/faraday#advanced-middleware-usage @see mislav.uniqpath.com/2011/07/faraday-advanced-http/ @return [Faraday::RackBuilder]
# File lib/echowrap/default.rb, line 82 def middleware MIDDLEWARE end
options()
click to toggle source
@return [Hash]
# File lib/echowrap/default.rb, line 49 def options Hash[Echowrap::Configurable.keys.map{|key| [key, send(key)]}] end