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