Class: SaveTheMonth::DailyRestrictedMovement

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date.



11
12
13
# File 'lib/expected_balance.rb', line 11

def date
  @date
end

Instance Method Details

#can_perform?(given_date, initial_date) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/expected_balance.rb', line 13

def can_perform?(given_date, initial_date)
  given_date == date
end