Class: Rainmaker::API

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

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Request

#get

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



11
12
13
14
15
16
# File 'lib/rainmaker/api.rb', line 11

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