Class: Formi9::API
- Inherits:
-
Object
- Object
- Formi9::API
- Includes:
- Connection, OAuth, Request
- Defined in:
- lib/formi9/api.rb
Direct Known Subclasses
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API.
Methods included from OAuth
#access_token, #access_token_cache_key, #reset_token, #token_cache_duration
Methods included from Request
#delete, #get, #post, #put, #request
Constructor Details
#initialize(options = {}) ⇒ API
Creates a new API
12 13 14 15 16 17 |
# File 'lib/formi9/api.rb', line 12 def initialize(={}) = Formi9..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/formi9/api.rb', line 19 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |