module CrunchApi::Default

Constants

ENDPOINT

Public Class Methods

consumer_key() click to toggle source
# File lib/crunch-api/default.rb, line 10
def consumer_key
  ENV['CRUNCH_CONSUMER_KEY']
end
consumer_secret() click to toggle source
# File lib/crunch-api/default.rb, line 14
def consumer_secret
  ENV['CRUNCH_CONSUMER_SECRET']
end
endpoint() click to toggle source
# File lib/crunch-api/default.rb, line 26
def endpoint
  ENDPOINT
end
oauth_token() click to toggle source
# File lib/crunch-api/default.rb, line 18
def oauth_token
  ENV['CRUNCH_OAUTH_TOKEN']
end
oauth_token_secret() click to toggle source
# File lib/crunch-api/default.rb, line 22
def oauth_token_secret
  ENV['CRUNCH_OAUTH_TOKEN_SECRET']
end
options() click to toggle source
# File lib/crunch-api/default.rb, line 6
def options
  Hash[CrunchApi.keys.map { |key| [key, send(key)] }]
end