Module: TicketingHub

Extended by:
Configuration
Defined in:
lib/ticketing_hub.rb,
lib/ticketing_hub/error.rb,
lib/ticketing_hub/client.rb,
lib/ticketing_hub/request.rb,
lib/ticketing_hub/version.rb,
lib/ticketing_hub/connection.rb,
lib/ticketing_hub/configuration.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'1.0.0'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_AUTO_TRAVERSAL, Configuration::DEFAULT_OAUTH_ENDPOINT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

api_endpoint=, configure, extended, faraday_config, options, reset

Class Method Details

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



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

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

.new(options = {}) ⇒ Object



9
10
11
# File 'lib/ticketing_hub.rb', line 9

def new options={}
  TicketingHub::Client.new options
end

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

Returns:

  • (Boolean)


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

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