Class: Payment::StrategyResolver::Deadline

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capture_before:, days_remaining:, source:) ⇒ Deadline

Returns a new instance of Deadline.



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

def initialize(capture_before:, days_remaining:, source:) = super

Instance Attribute Details

#capture_beforeObject (readonly)

Returns the value of attribute capture_before

Returns:

  • (Object)

    the current value of capture_before



19
20
21
# File 'app/services/payment/strategy_resolver.rb', line 19

def capture_before
  @capture_before
end

#days_remainingObject (readonly)

Returns the value of attribute days_remaining

Returns:

  • (Object)

    the current value of days_remaining



19
20
21
# File 'app/services/payment/strategy_resolver.rb', line 19

def days_remaining
  @days_remaining
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



19
20
21
# File 'app/services/payment/strategy_resolver.rb', line 19

def source
  @source
end