Class: Versapay::WebhookSignature
- Inherits:
-
Object
- Object
- Versapay::WebhookSignature
- Includes:
- ERB::Util
- Defined in:
- lib/versapay/webhooks.rb
Instance Attribute Summary collapse
-
#signature ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute signature.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(method, url, key, attributes) ⇒ WebhookSignature
constructor
A new instance of WebhookSignature.
Constructor Details
#initialize(method, url, key, attributes) ⇒ WebhookSignature
Returns a new instance of WebhookSignature.
44 45 46 47 48 49 50 |
# File 'lib/versapay/webhooks.rb', line 44 def initialize(method, url, key, attributes) @method = method @url = url @key = key @attributes = attributes @signature = generate_signature end |
Instance Attribute Details
#signature ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute signature.
33 34 35 |
# File 'lib/versapay/webhooks.rb', line 33 def signature @signature end |
Class Method Details
.hmac(*args) ⇒ Object
36 37 38 |
# File 'lib/versapay/webhooks.rb', line 36 def self.hmac(*args) new(*args).to_s end |