Module: GettyConnect

Extended by:
Config
Defined in:
lib/getty_connect.rb,
lib/getty_connect/error.rb,
lib/getty_connect/client.rb,
lib/getty_connect/config.rb,
lib/getty_connect/request.rb,
lib/getty_connect/version.rb,
lib/getty_connect/connection.rb,
lib/getty_connect/client/image.rb,
lib/getty_connect/client/session.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.0.4"

Constants included from Config

Config::DEFAULT_API_PASSWORD, Config::DEFAULT_API_USERNAME, Config::DEFAULT_API_VERSION, Config::DEFAULT_CREATE_SESSION_ENDPOINT, Config::DEFAULT_DOWNLOAD_AUTH_ENDPOINT, Config::DEFAULT_DOWNLOAD_LARGEST_ENDPOINT, Config::DEFAULT_DOWNLOAD_REQUEST_ENDPOINT, Config::DEFAULT_IMAGE_DETAILS_ENDPOINT, Config::DEFAULT_RENEW_SESSION_ENDPOINT, Config::DEFAULT_SEARCH_ENDPOINT, Config::DEFAULT_SYSTEM_ID, Config::DEFAULT_SYSTEM_PASSWORD, Config::DEFAULT_USER_AGENT, Config::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Config

configure, extended, options, reset

Class Method Details

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

Delegate to GettyConnect::Client.new



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

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

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

Alias for GettyConnect::Client.new



11
12
13
# File 'lib/getty_connect.rb', line 11

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

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

Returns:

  • (Boolean)


21
22
23
# File 'lib/getty_connect.rb', line 21

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