Class: EY::ApiHMAC::AuthedConnection

Inherits:
BaseConnection show all
Defined in:
lib/ey_api_hmac/authed_connection.rb

Instance Attribute Summary collapse

Attributes inherited from BaseConnection

#backend, #middlewares

Instance Method Summary collapse

Methods inherited from BaseConnection

#default_user_agent, #delete, #get, #handle_errors_with, #post, #put

Constructor Details

#initialize(auth_id, auth_key, user_agent = nil) ⇒ AuthedConnection

Returns a new instance of AuthedConnection.



8
9
10
11
12
13
# File 'lib/ey_api_hmac/authed_connection.rb', line 8

def initialize(auth_id, auth_key, user_agent = nil)
  @auth_id = auth_id
  @auth_key = auth_key
  super(user_agent)
  self.middlewares.unshift [EY::ApiHMAC::ApiAuth::Client, auth_id, auth_key]
end

Instance Attribute Details

#auth_idObject (readonly)

Returns the value of attribute auth_id.



6
7
8
# File 'lib/ey_api_hmac/authed_connection.rb', line 6

def auth_id
  @auth_id
end

#auth_keyObject (readonly)

Returns the value of attribute auth_key.



6
7
8
# File 'lib/ey_api_hmac/authed_connection.rb', line 6

def auth_key
  @auth_key
end