module DesignerNews::Default

Constants

API_ENDPOINT
MIDDLEWARE
USER_AGENT

Public Class Methods

access_token() click to toggle source
# File lib/designer_news/default_options.rb, line 21
def access_token
  ENV['DESIGNER_NEWS_ACCESS_TOKEN']
end
api_endpoint() click to toggle source
# File lib/designer_news/default_options.rb, line 25
def api_endpoint
  ENV['DESIGNER_NEWS_API_ENDPOINT'] || API_ENDPOINT
end
middleware() click to toggle source
# File lib/designer_news/default_options.rb, line 33
def middleware
  MIDDLEWARE
end
options() click to toggle source
# File lib/designer_news/default_options.rb, line 17
def options
  Hash[DesignerNews::Configurable.keys.map{|key| [key, send(key)]}]
end
user_agent() click to toggle source
# File lib/designer_news/default_options.rb, line 29
def user_agent
  ENV['DESIGNER_NEWS_USER_AGENT'] || USER_AGENT
end