Module: Cashstar

Extended by:
Configuration
Defined in:
lib/cashstar.rb,
lib/cashstar/api.rb,
lib/cashstar/error.rb,
lib/cashstar/client.rb,
lib/cashstar/request.rb,
lib/cashstar/version.rb,
lib/cashstar/connection.rb,
lib/cashstar/client/order.rb,
lib/cashstar/configuration.rb,
lib/cashstar/authentication.rb,
lib/cashstar/client/catalog.rb,
lib/cashstar/client/gift_card.rb,
lib/cashstar/client/merchants.rb,
lib/cashstar/client/faceplates.rb

Defined Under Namespace

Modules: Authentication, Configuration, Connection, Request Classes: API, BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =
"0.1.5"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FARADAY_OPTIONS, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_RETURN_CARD_NUMBERS, Configuration::DEFAULT_USERNAME, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset, test?

Class Method Details

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

Delegate to Cashstar::Client



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

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

.new(options = {}) ⇒ Cashstar::Client

Alias for Cashstar::Client.new

Returns:



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

def new(options={})
  Cashstar::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/cashstar.rb', line 23

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end