Class: Plutus::BalanceFinders::BaseBalanceFinder
- Inherits:
-
Object
- Object
- Plutus::BalanceFinders::BaseBalanceFinder
- Defined in:
- app/models/plutus/balance_finders/base_balance_finder.rb
Instance Attribute Summary collapse
-
#amounts ⇒ Object
readonly
Returns the value of attribute amounts.
Instance Method Summary collapse
- #compute ⇒ Object
-
#initialize(args) ⇒ BaseBalanceFinder
constructor
A new instance of BaseBalanceFinder.
Constructor Details
#initialize(args) ⇒ BaseBalanceFinder
Returns a new instance of BaseBalanceFinder.
5 6 7 |
# File 'app/models/plutus/balance_finders/base_balance_finder.rb', line 5 def initialize(args) @amounts = args.fetch(:amounts) end |
Instance Attribute Details
#amounts ⇒ Object (readonly)
Returns the value of attribute amounts.
4 5 6 |
# File 'app/models/plutus/balance_finders/base_balance_finder.rb', line 4 def amounts @amounts end |
Instance Method Details
#compute ⇒ Object
8 9 10 |
# File 'app/models/plutus/balance_finders/base_balance_finder.rb', line 8 def compute amounts.total end |