Module: Reshape

Extended by:
Configuration
Defined in:
lib/reshape.rb,
lib/reshape/error.rb,
lib/reshape/client.rb,
lib/reshape/request.rb,
lib/reshape/version.rb,
lib/reshape/connection.rb,
lib/reshape/client/price.rb,
lib/reshape/client/models.rb,
lib/reshape/client/orders.rb,
lib/reshape/configuration.rb,
lib/reshape/client/printers.rb,
lib/reshape/client/materials.rb,
lib/reshape/client/categories.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'0.2'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_RESPONSE_FORMAT, Configuration::DEFAULT_USER_AGENT, Configuration::DEFAULT_WEB_ENDPOINT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

api_endpoint=, configure, extended, options, reset, web_endpoint=

Class Method Details

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

Alias for Reshape::Client.new

Returns:



12
13
14
# File 'lib/reshape.rb', line 12

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

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

Returns:

  • (Boolean)


16
17
18
# File 'lib/reshape.rb', line 16

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