Class: BigcommerceOAuthAPI::API
Direct Known Subclasses
Client
Instance Method Summary
collapse
Methods included from Request
#delete, #get, #post, #put
Constructor Details
#initialize(options = {}) ⇒ API
Returns a new instance of API.
Instance Method Details
#config ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/bigcommerce-oauth-api/api.rb', line 17
def config
conf = {}
Configuration::VALID_OPTIONS_KEYS.each do |key|
conf[key] = send(key)
end
conf
end
|
#is_legacy? ⇒ Boolean
25
26
27
|
# File 'lib/bigcommerce-oauth-api/api.rb', line 25
def is_legacy?
!user_name.nil? && !api_key.nil? && endpoint != Configuration::DEFAULT_ENDPOINT
end
|