Class: NodexPay::PaymentResult
- Inherits:
-
Data
- Object
- Data
- NodexPay::PaymentResult
- Defined in:
- lib/nodex_pay/models.rb,
sig/nodex_pay.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#chain_id ⇒ Object
readonly
Returns the value of attribute chain_id.
-
#order_code ⇒ Object
readonly
Returns the value of attribute order_code.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
-
#transaction_code ⇒ Object
readonly
Returns the value of attribute transaction_code.
-
#transaction_hash ⇒ Object
readonly
Returns the value of attribute transaction_hash.
Instance Method Summary collapse
-
#initialize(order_code:, transaction_code:, amount:, symbol:, result:, chain_id:, transaction_hash:) ⇒ PaymentResult
constructor
A new instance of PaymentResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(order_code:, transaction_code:, amount:, symbol:, result:, chain_id:, transaction_hash:) ⇒ PaymentResult
Returns a new instance of PaymentResult.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/nodex_pay/models.rb', line 24 def initialize(order_code:, transaction_code:, amount:, symbol:, result:, chain_id:, transaction_hash:) super( order_code: order_code.dup.freeze, transaction_code: transaction_code.dup.freeze, amount: amount.dup.freeze, symbol: symbol.dup.freeze, result:, chain_id: chain_id.dup.freeze, transaction_hash: transaction_hash.dup.freeze ) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def amount @amount end |
#chain_id ⇒ Object (readonly)
Returns the value of attribute chain_id
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def chain_id @chain_id end |
#order_code ⇒ Object (readonly)
Returns the value of attribute order_code
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def order_code @order_code end |
#result ⇒ Object (readonly)
Returns the value of attribute result
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def result @result end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def symbol @symbol end |
#transaction_code ⇒ Object (readonly)
Returns the value of attribute transaction_code
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def transaction_code @transaction_code end |
#transaction_hash ⇒ Object (readonly)
Returns the value of attribute transaction_hash
15 16 17 |
# File 'lib/nodex_pay/models.rb', line 15 def transaction_hash @transaction_hash end |
Instance Method Details
#success? ⇒ Boolean
36 37 38 |
# File 'lib/nodex_pay/models.rb', line 36 def success? result end |