Module: Nifcloud

Extended by:
Configuration
Defined in:
lib/nifcloud.rb,
lib/nifcloud/api.rb,
lib/nifcloud/error.rb,
lib/nifcloud/client.rb,
lib/nifcloud/request.rb,
lib/nifcloud/version.rb,
lib/nifcloud/signature.rb,
lib/nifcloud/configuration.rb,
lib/nifcloud/objectified_hash.rb

Defined Under Namespace

Modules: Configuration, Error, ObjectifiedHash Classes: API, Client, Request, Signature

Constant Summary collapse

VERSION =
"0.0.2"

Constants included from Configuration

Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Object



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

def self.client(options={})
  Nifcloud::Client.new(options)
end

.http_proxy(address = nil, port = nil, username = nil, password = nil) ⇒ Object



26
27
28
# File 'lib/nifcloud.rb', line 26

def self.http_proxy(address=nil, port=nil, username=nil, password=nil)
  Nifcloud::Request.set_proxy_config(address, port, username, password)
end

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



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

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

Instance Method Details

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

Returns:

  • (Boolean)


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

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