Class: GymFinder::TimeTable
- Inherits:
-
Object
- Object
- GymFinder::TimeTable
- Defined in:
- lib/gym_finder/time_table.rb
Defined Under Namespace
Classes: TimeSlot
Instance Attribute Summary collapse
-
#time_slots ⇒ Object
Returns the value of attribute time_slots.
Instance Method Summary collapse
Instance Attribute Details
#time_slots ⇒ Object
Returns the value of attribute time_slots.
21 22 23 |
# File 'lib/gym_finder/time_table.rb', line 21 def time_slots @time_slots end |
Instance Method Details
#available_time_slots ⇒ Object
23 24 25 |
# File 'lib/gym_finder/time_table.rb', line 23 def available_time_slots time_slots.select { |time_slot| time_slot.status == 'available' } end |