Class: Squeezer::API

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/squeezer/api.rb

Direct Known Subclasses

Client, Models::Model

Instance Method Summary collapse

Methods included from Connection

close_connection, exec, #exit, open_connection, retrieve_connection

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



10
11
12
13
14
15
# File 'lib/squeezer/api.rb', line 10

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