Class: Echo::API

Inherits:
Object show all
Defined in:
lib/echor/api.rb

Direct Known Subclasses

Backplane, Client, Search, User

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



7
8
9
10
11
12
# File 'lib/echor/api.rb', line 7

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