module CrunchApi
Constants
- VERSION
Attributes
consumer_key[W]
consumer_secret[W]
endpoint[W]
oauth_token[W]
oauth_token_secret[W]
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/crunch-api.rb, line 19 def configure yield self self end
keys()
click to toggle source
# File lib/crunch-api.rb, line 9 def keys @keys ||= [ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret, :endpoint ] end
options()
click to toggle source
# File lib/crunch-api.rb, line 24 def options Hash[CrunchApi.keys.map { |key| [key, instance_variable_get(:"@#{key}")] }] end
reset!()
click to toggle source
# File lib/crunch-api.rb, line 28 def reset! CrunchApi.keys.each do |key| instance_variable_set(:"@#{key}", CrunchApi::Default.options[key]) end self end
Also aliased as: setup