Class: Monri::Payments::PaymentResult
- Inherits:
-
Hash
- Object
- Hash
- Monri::Payments::PaymentResult
- Defined in:
- lib/monri/payments/payment_result.rb
Instance Method Summary collapse
- #amount ⇒ String
- #created_at ⇒ String
- #currency ⇒ String
-
#initialize(params) ⇒ PaymentResult
constructor
A new instance of PaymentResult.
- #order_number ⇒ String
- #payment_method ⇒ String
- #response_message ⇒ String
- #status ⇒ String
- #transaction_type ⇒ String
Constructor Details
#initialize(params) ⇒ PaymentResult
Returns a new instance of PaymentResult.
6 7 8 |
# File 'lib/monri/payments/payment_result.rb', line 6 def initialize(params) merge!(params) end |
Instance Method Details
#amount ⇒ String
16 17 18 |
# File 'lib/monri/payments/payment_result.rb', line 16 def amount self[:amount] end |
#created_at ⇒ String
26 27 28 |
# File 'lib/monri/payments/payment_result.rb', line 26 def created_at self[:created_at] end |
#currency ⇒ String
11 12 13 |
# File 'lib/monri/payments/payment_result.rb', line 11 def currency self[:currency] end |
#order_number ⇒ String
21 22 23 |
# File 'lib/monri/payments/payment_result.rb', line 21 def order_number self[:order_number] end |
#payment_method ⇒ String
41 42 43 |
# File 'lib/monri/payments/payment_result.rb', line 41 def payment_method self[:payment_method] end |
#response_message ⇒ String
46 47 48 |
# File 'lib/monri/payments/payment_result.rb', line 46 def self[:response_message] end |
#status ⇒ String
31 32 33 |
# File 'lib/monri/payments/payment_result.rb', line 31 def status self[:status] end |
#transaction_type ⇒ String
36 37 38 |
# File 'lib/monri/payments/payment_result.rb', line 36 def transaction_type self[:transaction_type] end |