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.
4 5 6 |
# File 'lib/jpay/response.rb', line 4 def invoice @invoice end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/jpay/response.rb', line 4 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/jpay/response.rb', line 4 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/jpay/response.rb', line 4 def status @status end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/jpay/response.rb', line 4 def url @url end |
Instance Method Details
#valid? ⇒ boolean
Returns the validation status of response
23 24 25 |
# File 'lib/jpay/response.rb', line 23 def valid? @valid end |
#validate(response = nil) ⇒ Response
Checks if the transaction response returned from PaymentRequest or PaymentVerification is valid
13 14 15 16 17 18 |
# File 'lib/jpay/response.rb', line 13 def validate(response = nil) @response = response perform_validation return self end |