Class: GymFinder::TimeTable

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

Defined Under Namespace

Classes: TimeSlot

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#time_slotsObject

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_slotsObject



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