Class: EY::ApiHMAC::AuthedConnection
- Inherits:
-
BaseConnection
- Object
- BaseConnection
- EY::ApiHMAC::AuthedConnection
- Defined in:
- lib/ey_api_hmac/authed_connection.rb
Instance Attribute Summary collapse
-
#auth_id ⇒ Object
readonly
Returns the value of attribute auth_id.
-
#auth_key ⇒ Object
readonly
Returns the value of attribute auth_key.
Attributes inherited from BaseConnection
Instance Method Summary collapse
-
#initialize(auth_id, auth_key, user_agent = nil) ⇒ AuthedConnection
constructor
A new instance of AuthedConnection.
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_id ⇒ Object (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_key ⇒ Object (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 |