Exception: Buckaruby::SignatureException

Inherits:
BuckarooException show all
Defined in:
lib/buckaruby/exception.rb

Overview

Exception raised when the signature could not be verified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sent_signature, generated_signature) ⇒ SignatureException

Returns a new instance of SignatureException.



64
65
66
67
68
69
70
# File 'lib/buckaruby/exception.rb', line 64

def initialize(sent_signature, generated_signature)
  @sent_signature = sent_signature
  @generated_signature = generated_signature

  message = "Sent signature (#{sent_signature}) doesn't match generated signature (#{generated_signature})"
  super(message)
end

Instance Attribute Details

#generated_signatureObject (readonly)

Returns the value of attribute generated_signature.



62
63
64
# File 'lib/buckaruby/exception.rb', line 62

def generated_signature
  @generated_signature
end

#sent_signatureObject (readonly)

Returns the value of attribute sent_signature.



62
63
64
# File 'lib/buckaruby/exception.rb', line 62

def sent_signature
  @sent_signature
end