Class: SimplePerformer::ApiAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/api_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_key, secret_key = "default", options = {}) ⇒ ApiAuth

Returns a new instance of ApiAuth.



5
6
7
8
9
# File 'lib/api_auth.rb', line 5

def initialize(access_key, secret_key="default", options={})
    @access_key = access_key
    @secret_key = secret_key
    @host = options[:host]
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/api_auth.rb', line 3

def host
  @host
end