Class: FlowAccount::API
- Inherits:
-
Object
- Object
- FlowAccount::API
- Includes:
- Auth, Connection, Request
- Defined in:
- lib/flow_account/api.rb
Direct Known Subclasses
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
A new instance of API.
Methods included from Auth
#authorize_url, #get_access_token
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ API
Returns a new instance of API.
9 10 11 12 13 14 |
# File 'lib/flow_account/api.rb', line 9 def initialize(={}) = FlowAccount..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/flow_account/api.rb', line 16 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |