lib/ey-hmac/rack.rb in ey-hmac-2.3.0 vs lib/ey-hmac/rack.rb in ey-hmac-2.3.1
- old
+ new
@@ -1,11 +1,14 @@
+# frozen_string_literal: true
+
# Request middleware that performs HMAC request signing
class Ey::Hmac::Rack
attr_reader :key_id, :key_secret, :options
def initialize(app, key_id, key_secret, options = {})
@app = app
- @key_id, @key_secret = key_id, key_secret
+ @key_id = key_id
+ @key_secret = key_secret
@options = options
end
def call(env)
Ey::Hmac.sign!(env, key_id, key_secret, { adapter: Ey::Hmac::Adapter::Rack }.merge(options))