Class: TPEX::API

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

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from ServicesCSRF

#get_access_token

Methods included from Request

#get, #post

Methods included from Connection

#connection

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



13
14
15
16
17
18
# File 'lib/tpex/api.rb', line 13

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