Class: Payment::StrategyResolver::CaptureOptions

Inherits:
Data
  • Object
show all
Defined in:
app/services/payment/strategy_resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(final_capture: true, reason: nil) ⇒ CaptureOptions

Returns a new instance of CaptureOptions.



12
# File 'app/services/payment/strategy_resolver.rb', line 12

def initialize(final_capture: true, reason: nil) = super

Instance Attribute Details

#final_captureObject (readonly)

Returns the value of attribute final_capture

Returns:

  • (Object)

    the current value of final_capture



11
12
13
# File 'app/services/payment/strategy_resolver.rb', line 11

def final_capture
  @final_capture
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



11
12
13
# File 'app/services/payment/strategy_resolver.rb', line 11

def reason
  @reason
end