Module: PactasItero

Extended by:
Configurable
Defined in:
lib/pactas_itero.rb,
lib/pactas_itero/api.rb,
lib/pactas_itero/error.rb,
lib/pactas_itero/client.rb,
lib/pactas_itero/default.rb,
lib/pactas_itero/version.rb,
lib/pactas_itero/api/oauth.rb,
lib/pactas_itero/api/orders.rb,
lib/pactas_itero/api/invoices.rb,
lib/pactas_itero/configurable.rb,
lib/pactas_itero/api/contracts.rb,
lib/pactas_itero/api/customers.rb,
lib/pactas_itero/api/rated_items.rb,
lib/pactas_itero/response/raise_error.rb,
lib/pactas_itero/api/payment_transactions.rb

Defined Under Namespace

Modules: Api, Configurable, Default, Response Classes: ApplicationCredentialsRequired, BadGateway, BadRequest, Client, ClientError, Conflict, Error, Forbidden, InternalServerError, MissingContentType, NotAcceptable, NotFound, NotImplemented, OneTimePasswordRequired, ServerError, ServiceUnavailable, TooManyLoginAttempts, TooManyRequests, Unauthorized, UnprocessableEntity, UnsupportedMediaType

Constant Summary collapse

VERSION =
"0.9.0"

Instance Attribute Summary

Attributes included from Configurable

#api_endpoint, #bearer_token, #client_id, #client_secret, #default_media_type, #legal_entity_id, #middleware, #production, #user_agent

Class Method Summary collapse

Methods included from Configurable

configure, keys, production_api_endpoint, reset!, sandbox_api_endpoint

Class Method Details

.clientPactasItero::Client

API client based on configured options Configurable

Returns:



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

def client
  PactasItero::Client.new(options)
end

.respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


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

def respond_to_missing?(method_name, include_private = false)
  (method_name != :client && client.respond_to?(method_name, include_private)) || super
end