Class: NationalGovernmentOrganizationHoliday::Value
- Inherits:
-
Object
- Object
- NationalGovernmentOrganizationHoliday::Value
- Defined in:
- lib/national_government_organization_holiday/value.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
- #on_weekday? ⇒ Boolean
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
7 8 9 |
# File 'lib/national_government_organization_holiday/value.rb', line 7 def initialize(value) @value = value end |
Instance Method Details
#on_weekday? ⇒ Boolean
12 13 14 15 16 17 18 |
# File 'lib/national_government_organization_holiday/value.rb', line 12 def on_weekday? return false if @value.on_weekend? return false if on_new_year_holiday_season? return false if @value.national_holiday? true end |