Class: Shirtsio::API

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

Instance Method Summary collapse

Methods included from Request

#get, #post

Constructor Details

#initialize(options = {}) ⇒ API

Returns a new instance of API.



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

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