Class: Feriados::Loader

Inherits:
Object
  • Object
show all
Includes:
Rules
Defined in:
lib/feriados/loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(data, calendar) ⇒ Loader

Returns a new instance of Loader.



7
8
9
10
# File 'lib/feriados/loader.rb', line 7

def initialize(data, calendar)
  @data = data
  @calendar = calendar
end

Instance Method Details

#loadObject



12
13
14
15
16
17
# File 'lib/feriados/loader.rb', line 12

def load
  load_day_of_month
  load_functions
  load_fix_week_days
  load_fix_dates
end