module EmpireAvenue::Default

Constants

CONNECTION_OPTIONS
ENDPOINT
IDENTITY_MAP
MIDDLEWARE

Public Class Methods

client_id() click to toggle source

@return [String]sferik

# File lib/empireavenue/default.rb, line 55
def client_id
  ENV['EMPIRE_AVENUE_CLIENT_ID']
end
client_secret() click to toggle source

@return [String]

# File lib/empireavenue/default.rb, line 60
def client_secret
  ENV['EMPIRE_AVENUE_CLIENT_SECRET']
end
connection_options() click to toggle source
# File lib/empireavenue/default.rb, line 80
def connection_options
  CONNECTION_OPTIONS
end
endpoint() click to toggle source

@note This is configurable in case you want to use a Empire Avenue-compatible endpoint. @return [String]

# File lib/empireavenue/default.rb, line 76
def endpoint
  ENDPOINT
end
identity_map() click to toggle source
# File lib/empireavenue/default.rb, line 84
def identity_map
  IDENTITY_MAP
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 mislav.uniqpath.com/2011/07/faraday-advanced-http/ @return [Faraday::Builder]

# File lib/empireavenue/default.rb, line 91
def middleware
  MIDDLEWARE
end
oauth_token() click to toggle source

@return [String]

# File lib/empireavenue/default.rb, line 65
def oauth_token
  ENV['EMPIRE_AVENUE_OAUTH_TOKEN']
end
oauth_token_secret() click to toggle source

@return [String]

# File lib/empireavenue/default.rb, line 70
def oauth_token_secret
  ENV['EMPIRE_AVENUE_OAUTH_TOKEN_SECRET']
end
options() click to toggle source

@return [Hash]

# File lib/empireavenue/default.rb, line 50
def options
  Hash[EmpireAvenue::Configurable.keys.map{|key| [key, send(key)]}]
end