Module: TPEX

Extended by:
Configuration
Defined in:
lib/tpex.rb,
lib/tpex/api.rb,
lib/tpex/error.rb,
lib/tpex/client.rb,
lib/tpex/request.rb,
lib/tpex/version.rb,
lib/tpex/response.rb,
lib/tpex/connection.rb,
lib/tpex/client/auth.rb,
lib/tpex/client/files.rb,
lib/tpex/servicescsrf.rb,
lib/tpex/configuration.rb,
lib/tpex/client/products.rb,
lib/tpex/client/performancenodes.rb

Defined Under Namespace

Modules: Configuration, Connection, Request, Response, ServicesCSRF Classes: API, BadRequest, Client, Error, InternalServerError, NotAcceptable, NotFound, Unauthorized

Constant Summary collapse

VERSION =
"0.1.7"

Constants included from Configuration

Configuration::DEFAULT_ACCESS_TOKEN, Configuration::DEFAULT_COOKIE, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_LOGGING, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_USERNAME, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Object



13
14
15
# File 'lib/tpex.rb', line 13

def self.client(options={})
  TPEX::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object



17
18
19
20
# File 'lib/tpex.rb', line 17

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/tpex.rb', line 22

def self.respond_to?(method)
  return client.respond_to?(method) || super
end

.versionObject



5
6
7
# File 'lib/tpex/version.rb', line 5

def self.version
  VERSION
end