Class: Dirigible::API

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

Instance Method Summary collapse

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ API

Returns a new instance of API.



6
7
8
9
10
11
# File 'lib/dirigible/api.rb', line 6

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