Class: SolidusBolt::Transactions::CaptureService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- SolidusBolt::Transactions::CaptureService
- Defined in:
- app/services/solidus_bolt/transactions/capture_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#transaction_reference ⇒ Object
readonly
Returns the value of attribute transaction_reference.
Attributes inherited from BaseService
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(transaction_reference:, amount:, currency:, payment_method:) ⇒ CaptureService
constructor
A new instance of CaptureService.
Methods inherited from BaseService
Constructor Details
#initialize(transaction_reference:, amount:, currency:, payment_method:) ⇒ CaptureService
Returns a new instance of CaptureService.
8 9 10 11 12 13 |
# File 'app/services/solidus_bolt/transactions/capture_service.rb', line 8 def initialize(transaction_reference:, amount:, currency:, payment_method:) @transaction_reference = transaction_reference @amount = amount @currency = currency super end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/capture_service.rb', line 6 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/capture_service.rb', line 6 def currency @currency end |
#transaction_reference ⇒ Object (readonly)
Returns the value of attribute transaction_reference.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/capture_service.rb', line 6 def transaction_reference @transaction_reference end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'app/services/solidus_bolt/transactions/capture_service.rb', line 15 def call capture end |