Class: EventManager

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

Instance Method Summary collapse

Constructor Details

#initialize(input_file = "event_attendees.csv") ⇒ EventManager

Returns a new instance of EventManager.



8
9
10
11
12
13
14
15
16
17
# File 'lib/event_manager.rb', line 8

def initialize(input_file = "event_attendees.csv")
  puts "EventManager initialized."
  input_file = input_file
  hours = {}
  days = {}
  (1..24).each {|x| hours[x] = 0}
  (0..6).each {|x| days[x] = 0}
  Sunlight::Congress.api_key = "e179a6973728c4dd3fb1204283aaccb5"
  main(input_file, hours, days)
end