Class: Infusionsoft::Api

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

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Request

#delete, #get, #patch, #post, #put, #xmlrpc

Constructor Details

#initialize(options = {}) ⇒ Api

Returns a new instance of Api.



14
15
16
17
18
19
20
# File 'lib/infusionsoft/api.rb', line 14

def initialize(options={})
  @retry_count = 0
  options = Infusionsoft.options.merge(options)
  Configuration::VALID_OPTION_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Instance Attribute Details

#retry_countObject

Returns the value of attribute retry_count.



11
12
13
# File 'lib/infusionsoft/api.rb', line 11

def retry_count
  @retry_count
end