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.
7 8 9 10 11 12 |
# File 'lib/ey-hmac/rack.rb', line 7 def initialize(app, key_id, key_secret, = {}) @app = 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.
5 6 7 |
# File 'lib/ey-hmac/rack.rb', line 5 def key_id @key_id end |
#key_secret ⇒ Object (readonly)
Returns the value of attribute key_secret.
5 6 7 |
# File 'lib/ey-hmac/rack.rb', line 5 def key_secret @key_secret end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/ey-hmac/rack.rb', line 5 def @options end |