Class: FlowAccount::API

Inherits:
Object
  • Object
show all
Includes:
Auth, Connection, Request
Defined in:
lib/flow_account/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Auth

#authorize_url, #get_access_token

Methods included from Request

#delete, #get, #post, #put

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(options={})
  options = FlowAccount.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Instance Method Details

#configObject



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