Class: Giact::PaymentReply
- Inherits:
-
Object
- Object
- Giact::PaymentReply
- Defined in:
- lib/giact/payment_reply.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#pass ⇒ Object
readonly
Returns the value of attribute pass.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(response) ⇒ PaymentReply
constructor
A new instance of PaymentReply.
- #pass? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ PaymentReply
Returns a new instance of PaymentReply.
5 6 7 |
# File 'lib/giact/payment_reply.rb', line 5 def initialize(response) @transaction_id, @error, @pass, @details, @code = response.split("|") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/giact/payment_reply.rb', line 3 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
3 4 5 |
# File 'lib/giact/payment_reply.rb', line 3 def details @details end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/giact/payment_reply.rb', line 3 def error @error end |
#pass ⇒ Object (readonly)
Returns the value of attribute pass.
3 4 5 |
# File 'lib/giact/payment_reply.rb', line 3 def pass @pass end |
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
3 4 5 |
# File 'lib/giact/payment_reply.rb', line 3 def transaction_id @transaction_id end |
Instance Method Details
#error? ⇒ Boolean
13 14 15 |
# File 'lib/giact/payment_reply.rb', line 13 def error? @error.to_s == 'true' end |
#pass? ⇒ Boolean
17 18 19 |
# File 'lib/giact/payment_reply.rb', line 17 def pass? @pass.to_s == 'true' end |