Module: EdgeCast

Extended by:
Config
Defined in:
lib/edge_cast.rb,
lib/edge_cast/error.rb,
lib/edge_cast/client.rb,
lib/edge_cast/config.rb,
lib/edge_cast/request.rb,
lib/edge_cast/version.rb,
lib/edge_cast/connection.rb,
lib/edge_cast/client/media.rb,
lib/edge_cast/error/forbidden.rb,
lib/edge_cast/error/not_found.rb,
lib/edge_cast/error/bad_gateway.rb,
lib/edge_cast/error/bad_request.rb,
lib/edge_cast/client/media/token.rb,
lib/edge_cast/error/client_error.rb,
lib/edge_cast/error/server_error.rb,
lib/edge_cast/error/unauthorized.rb,
lib/edge_cast/error/not_acceptable.rb,
lib/edge_cast/request/authorization.rb,
lib/edge_cast/error/method_not_allowed.rb,
lib/edge_cast/error/service_unavailable.rb,
lib/edge_cast/client/media/cache/settings.rb,
lib/edge_cast/error/internal_server_error.rb,
lib/edge_cast/response/raise_client_error.rb,
lib/edge_cast/response/raise_server_error.rb,
lib/edge_cast/client/media/cache/management.rb,
lib/edge_cast/client/media/log/settings/format.rb,
lib/edge_cast/client/media/log/settings/storage.rb,
lib/edge_cast/client/media/cache/settings/compression.rb,
lib/edge_cast/client/media/cache/settings/query_string_caching.rb,
lib/edge_cast/client/media/cache/settings/query_string_logging.rb

Defined Under Namespace

Modules: Config, Connection, Request, Response Classes: Client, Error

Constant Summary collapse

VERSION =
'1.0.0'

Constants included from Config

Config::DEFAULT_ADAPTER, Config::DEFAULT_API_TOKEN, Config::DEFAULT_CONNECTION_OPTIONS, Config::DEFAULT_HOST, 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 EdgeCast::Client



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

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

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

Alias for EdgeCast::Client.new

Returns:



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

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

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/edge_cast.rb', line 22

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