Class: Jpay::Response
- Inherits:
-
Object
- Object
- Jpay::Response
- Defined in:
- lib/jpay/response.rb
Defined Under Namespace
Classes: ResponseError
Instance Attribute Summary collapse
-
#invoice ⇒ Object
readonly
Returns the value of attribute invoice.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#valid? ⇒ boolean
Returns the validation status of response.
-
#validate(response = nil) ⇒ Response
Checks if the transaction response returned from PaymentRequest or PaymentVerification is valid.
Instance Attribute Details
#invoice ⇒ Object (readonly)
Returns the value of attribute invoice.
5 6 7 |
# File 'lib/jpay/response.rb', line 5 def invoice @invoice end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/jpay/response.rb', line 5 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/jpay/response.rb', line 5 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/jpay/response.rb', line 5 def status @status end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/jpay/response.rb', line 5 def url @url end |
Instance Method Details
#valid? ⇒ boolean
Returns the validation status of response
24 25 26 |
# File 'lib/jpay/response.rb', line 24 def valid? @valid end |
#validate(response = nil) ⇒ Response
Checks if the transaction response returned from PaymentRequest or PaymentVerification is valid
14 15 16 17 18 19 |
# File 'lib/jpay/response.rb', line 14 def validate(response = nil) @response = response perform_validation return self end |