Class: AncientCityRuby::EventsTable::TimeSlot
- Inherits:
-
Object
- Object
- AncientCityRuby::EventsTable::TimeSlot
- Defined in:
- lib/ancient-city-ruby/events_table/time_slot.rb
Instance Attribute Summary collapse
-
#event_name ⇒ Object
Returns the value of attribute event_name.
-
#speaker ⇒ Object
Returns the value of attribute speaker.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(time, event_name, speaker = nil) ⇒ TimeSlot
constructor
A new instance of TimeSlot.
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_name ⇒ Object
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 |
#speaker ⇒ Object
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 |
#time ⇒ Object
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 |