Class: Ey::Hmac::Rack
- Inherits:
-
Object
- Object
- Ey::Hmac::Rack
- Defined in:
- lib/ey-hmac/rack.rb
Overview
Request middleware that performs HMAC request signing
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 = {}) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app, key_id, key_secret, options = {}) ⇒ Rack
Returns a new instance of Rack.
5 6 7 8 9 |
# File 'lib/ey-hmac/rack.rb', line 5 def initialize(app, key_id, key_secret, = {}) @app = app @key_id, @key_secret = key_id, key_secret @options = end |
Instance Attribute Details
#key_id ⇒ Object (readonly)
Returns the value of attribute key_id.
3 4 5 |
# File 'lib/ey-hmac/rack.rb', line 3 def key_id @key_id end |
#key_secret ⇒ Object (readonly)
Returns the value of attribute key_secret.
3 4 5 |
# File 'lib/ey-hmac/rack.rb', line 3 def key_secret @key_secret end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/ey-hmac/rack.rb', line 3 def @options end |