Class: AncientCityRuby::EventsTable::TimeSlot

Inherits:
Object
  • Object
show all
Defined in:
lib/ancient-city-ruby/events_table/time_slot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time, event_name, speaker = nil) ⇒ TimeSlot

Returns a new instance of TimeSlot.



6
7
8
9
10
# File 'lib/ancient-city-ruby/events_table/time_slot.rb', line 6

def initialize(time, event_name, speaker = nil)
  self.time = time
  self.event_name = event_name
  self.speaker = speaker
end

Instance Attribute Details

#event_nameObject

Returns the value of attribute event_name.



4
5
6
# File 'lib/ancient-city-ruby/events_table/time_slot.rb', line 4

def event_name
  @event_name
end

#speakerObject

Returns the value of attribute speaker.



4
5
6
# File 'lib/ancient-city-ruby/events_table/time_slot.rb', line 4

def speaker
  @speaker
end

#timeObject

Returns the value of attribute time.



4
5
6
# File 'lib/ancient-city-ruby/events_table/time_slot.rb', line 4

def time
  @time
end