Class: Walletone::Notification
- Defined in:
- lib/walletone/notification.rb
Constant Summary
Constants inherited from Fields
Fields::MULTIPLE_VALUES, Fields::W1_KEYS
Instance Method Summary collapse
-
#initialize(params) ⇒ Notification
constructor
A new instance of Notification.
- #valid?(secret_key, hash_type = Signer::DEFAULT_HASH_TYPE) ⇒ Boolean
Methods inherited from Fields
Constructor Details
#initialize(params) ⇒ Notification
Returns a new instance of Notification.
8 9 10 |
# File 'lib/walletone/notification.rb', line 8 def initialize params super( params ).freeze end |
Instance Method Details
#valid?(secret_key, hash_type = Signer::DEFAULT_HASH_TYPE) ⇒ Boolean
12 13 14 |
# File 'lib/walletone/notification.rb', line 12 def valid?(secret_key, hash_type = Signer::DEFAULT_HASH_TYPE) self.WMI_SIGNATURE == signer.signature( secret_key, hash_type ) end |