Class: EventManager

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EventManager.



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

def initialize(input_file = "required_files/event_attendees.csv")
	puts "EventManager initialized."
	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