Class: SaveTheMonth::PeriodicalMovement

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/expected_balance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#can_perform_strategyObject

Returns the value of attribute can_perform_strategy.



19
20
21
# File 'lib/expected_balance.rb', line 19

def can_perform_strategy
  @can_perform_strategy
end

Instance Method Details

#can_perform?(given_date, initial_date) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/expected_balance.rb', line 21

def can_perform?(given_date, initial_date)
  can_perform_strategy.call(given_date, initial_date)
end