Class: Payment::StrategyResolver::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strategy:, payment: nil, vault: nil, reason: nil) ⇒ Result

Returns a new instance of Result.



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

def initialize(strategy:, payment: nil, vault: nil, reason: nil) = super

Instance Attribute Details

#paymentObject (readonly)

Returns the value of attribute payment

Returns:

  • (Object)

    the current value of payment



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

def payment
  @payment
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



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

def reason
  @reason
end

#strategyObject (readonly)

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



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

def strategy
  @strategy
end

#vaultObject (readonly)

Returns the value of attribute vault

Returns:

  • (Object)

    the current value of vault



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

def vault
  @vault
end