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.



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

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



7
8
9
# File 'app/services/payment/strategy_resolver.rb', line 7

def payment
  @payment
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



7
8
9
# File 'app/services/payment/strategy_resolver.rb', line 7

def reason
  @reason
end

#strategyObject (readonly)

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



7
8
9
# File 'app/services/payment/strategy_resolver.rb', line 7

def strategy
  @strategy
end

#vaultObject (readonly)

Returns the value of attribute vault

Returns:

  • (Object)

    the current value of vault



7
8
9
# File 'app/services/payment/strategy_resolver.rb', line 7

def vault
  @vault
end