Method: Rackspace::Client#initialize

Defined in:
lib/rackspace-apps.rb

#initialize(user_key, secret_hash, opts = {}) ⇒ Client

Returns a new instance of Client.



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/rackspace-apps.rb', line 18

def initialize(user_key, secret_hash, opts={})
  options = {
    :server => 'api.emailsrvr.com',
    :version_prefix => '/v0'
  }.merge! opts
  @server = options[:server]
  @version_prefix = options[:version_prefix]
  @user_key = user_key
  @secret_hash = secret_hash
  @connection = false
end