Class: Wirecard::Elastic::Request::Transaction
- Defined in:
- lib/wirecard/elastic/request/transaction.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#merchant_id ⇒ Object
readonly
Returns the value of attribute merchant_id.
-
#payment_method ⇒ Object
readonly
Returns the value of attribute payment_method.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
Instance Method Summary collapse
-
#initialize(merchant_id, transaction_id, payment_method) ⇒ Transaction
constructor
A new instance of Transaction.
-
#query ⇒ Object
address we want to access on the API.
-
#request ⇒ Object
calling request.
-
#response ⇒ Object
processed response.
Methods inherited from Base
Constructor Details
#initialize(merchant_id, transaction_id, payment_method) ⇒ Transaction
Returns a new instance of Transaction.
9 10 11 12 13 |
# File 'lib/wirecard/elastic/request/transaction.rb', line 9 def initialize(merchant_id, transaction_id, payment_method) @merchant_id = merchant_id @transaction_id = transaction_id @payment_method = payment_method end |
Instance Attribute Details
#merchant_id ⇒ Object (readonly)
Returns the value of attribute merchant_id.
7 8 9 |
# File 'lib/wirecard/elastic/request/transaction.rb', line 7 def merchant_id @merchant_id end |
#payment_method ⇒ Object (readonly)
Returns the value of attribute payment_method.
7 8 9 |
# File 'lib/wirecard/elastic/request/transaction.rb', line 7 def payment_method @payment_method end |
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
7 8 9 |
# File 'lib/wirecard/elastic/request/transaction.rb', line 7 def transaction_id @transaction_id end |
Instance Method Details
#query ⇒ Object
address we want to access on the API
26 27 28 |
# File 'lib/wirecard/elastic/request/transaction.rb', line 26 def query @query ||= "merchants/#{merchant_id}/payments/#{transaction_id}" end |