Module: Payture

Extended by:
Configuration
Defined in:
lib/payture.rb,
lib/payture/api.rb,
lib/payture/error.rb,
lib/payture/client.rb,
lib/payture/helper.rb,
lib/payture/request.rb,
lib/payture/version.rb,
lib/payture/response.rb,
lib/payture/connection.rb,
lib/payture/client/vwapi.rb,
lib/payture/configuration.rb

Defined Under Namespace

Modules: Configuration, Connection, Helper, Request, Response Classes: Api, BadGateway, BadRequest, Client, Error, GatewayTimeout, InternalServerError, NotFound, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =
"0.0.2"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_TYPE, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_HOST_TYPE, Configuration::DEFAULT_KEY, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_USER_AGENT, Configuration::DOMAIN, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Object



10
11
12
# File 'lib/payture.rb', line 10

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

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



14
15
16
17
# File 'lib/payture.rb', line 14

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)


19
20
21
# File 'lib/payture.rb', line 19

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