Class: SpecialDelivery::Authenticator
- Inherits:
-
Object
- Object
- SpecialDelivery::Authenticator
- Defined in:
- lib/special_delivery/authenticator.rb
Instance Method Summary collapse
- #authentic? ⇒ Boolean
-
#initialize(event_params) ⇒ Authenticator
constructor
A new instance of Authenticator.
Constructor Details
#initialize(event_params) ⇒ Authenticator
Returns a new instance of Authenticator.
3 4 5 |
# File 'lib/special_delivery/authenticator.rb', line 3 def initialize(event_params) @event_params = event_params.to_hash end |
Instance Method Details
#authentic? ⇒ Boolean
7 8 9 10 11 |
# File 'lib/special_delivery/authenticator.rb', line 7 def authentic? actual_signature == expected_signature rescue false end |