Class: Ey::Hmac::Faraday
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Ey::Hmac::Faraday
- Defined in:
- lib/ey-hmac/faraday.rb
Instance Attribute Summary collapse
-
#key_id ⇒ Object
readonly
Returns the value of attribute key_id.
-
#key_secret ⇒ Object
readonly
Returns the value of attribute key_secret.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, key_id, key_secret, options = {}) ⇒ Faraday
constructor
A new instance of Faraday.
Constructor Details
#initialize(app, key_id, key_secret, options = {}) ⇒ Faraday
Returns a new instance of Faraday.
11 12 13 14 15 16 |
# File 'lib/ey-hmac/faraday.rb', line 11 def initialize(app, key_id, key_secret, = {}) super(app) @key_id = key_id @key_secret = key_secret @options = end |
Instance Attribute Details
#key_id ⇒ Object (readonly)
Returns the value of attribute key_id.
9 10 11 |
# File 'lib/ey-hmac/faraday.rb', line 9 def key_id @key_id end |
#key_secret ⇒ Object (readonly)
Returns the value of attribute key_secret.
9 10 11 |
# File 'lib/ey-hmac/faraday.rb', line 9 def key_secret @key_secret end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/ey-hmac/faraday.rb', line 9 def @options end |