Class: Nifcloud::API

Inherits:
Request show all
Defined in:
lib/nifcloud/api.rb

Direct Known Subclasses

Client

Instance Attribute Summary

Attributes inherited from Request

#access_key, #endpoint, #secret_key

Instance Method Summary collapse

Methods inherited from Request

#delete, #get, #post, #put, set_proxy_config

Constructor Details

#initialize(options = {}) ⇒ API

Returns a new instance of API.



5
6
7
8
9
10
11
12
# File 'lib/nifcloud/api.rb', line 5

def initialize(options={})
  options = Nifcloud.options.merge(options)
  (Configuration::VALID_OPTIONS_KEYS + [:secret_key]).each do |key|
    send("#{key}=", options[key]) if options[key]
  end

  super
end