Class: NationalGovernmentOrganizationHoliday::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/national_government_organization_holiday/value.rb

Instance Method Summary collapse

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

Returns:

  • (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