Class: Aurfy::Response
- Inherits:
-
Object
- Object
- Aurfy::Response
- Defined in:
- lib/aurfy/response.rb
Instance Attribute Summary collapse
-
#merchantid ⇒ Object
readonly
Returns the value of attribute merchantid.
-
#orderamount ⇒ Object
readonly
Returns the value of attribute orderamount.
-
#ordercurrency ⇒ Object
readonly
Returns the value of attribute ordercurrency.
-
#orderid ⇒ Object
readonly
Returns the value of attribute orderid.
-
#ordertime ⇒ Object
readonly
Returns the value of attribute ordertime.
-
#respcode ⇒ Object
readonly
Returns the value of attribute respcode.
-
#respmsg ⇒ Object
readonly
Returns the value of attribute respmsg.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#signmethod ⇒ Object
readonly
Returns the value of attribute signmethod.
-
#txnid ⇒ Object
readonly
Returns the value of attribute txnid.
-
#txnremark1 ⇒ Object
readonly
Returns the value of attribute txnremark1.
-
#txnremark2 ⇒ Object
readonly
Returns the value of attribute txnremark2.
-
#txnstatus ⇒ Object
readonly
Returns the value of attribute txnstatus.
-
#txntime ⇒ Object
readonly
Returns the value of attribute txntime.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(result) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
Instance Attribute Details
#merchantid ⇒ Object (readonly)
Returns the value of attribute merchantid.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def merchantid @merchantid end |
#orderamount ⇒ Object (readonly)
Returns the value of attribute orderamount.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def orderamount @orderamount end |
#ordercurrency ⇒ Object (readonly)
Returns the value of attribute ordercurrency.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def ordercurrency @ordercurrency end |
#orderid ⇒ Object (readonly)
Returns the value of attribute orderid.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def orderid @orderid end |
#ordertime ⇒ Object (readonly)
Returns the value of attribute ordertime.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def ordertime @ordertime end |
#respcode ⇒ Object (readonly)
Returns the value of attribute respcode.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def respcode @respcode end |
#respmsg ⇒ Object (readonly)
Returns the value of attribute respmsg.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def respmsg @respmsg end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def result @result end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def signature @signature end |
#signmethod ⇒ Object (readonly)
Returns the value of attribute signmethod.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def signmethod @signmethod end |
#txnid ⇒ Object (readonly)
Returns the value of attribute txnid.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def txnid @txnid end |
#txnremark1 ⇒ Object (readonly)
Returns the value of attribute txnremark1.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def txnremark1 @txnremark1 end |
#txnremark2 ⇒ Object (readonly)
Returns the value of attribute txnremark2.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def txnremark2 @txnremark2 end |
#txnstatus ⇒ Object (readonly)
Returns the value of attribute txnstatus.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def txnstatus @txnstatus end |
#txntime ⇒ Object (readonly)
Returns the value of attribute txntime.
3 4 5 |
# File 'lib/aurfy/response.rb', line 3 def txntime @txntime end |
Class Method Details
.keys ⇒ Object
6 7 8 9 |
# File 'lib/aurfy/response.rb', line 6 def self.keys [:merchantid, :orderamount, :ordercurrency, :orderid, :ordertime, :respcode, :respmsg, :signature, :signmethod, :txnid, :txnremark1, :txnremark2, :txnstatus, :txntime] end |
Instance Method Details
#success? ⇒ Boolean
18 19 20 |
# File 'lib/aurfy/response.rb', line 18 def success? respcode == "00" end |