class GymFinder::TimeTable::TimeSlot
Attributes
court[RW]
price[RW]
qpid[RW]
status[RW]
time[RW]
Public Class Methods
new(**params)
click to toggle source
# File lib/gym_finder/time_table.rb, line 8 def initialize(**params) params.each do |key, value| send("#{key}=", value) end end
Public Instance Methods
==(other_time_slot)
click to toggle source
# File lib/gym_finder/time_table.rb, line 14 def ==(other_time_slot) %i[time court price status qpid].each do |name| return false unless send(name) == other_time_slot.send(name) end true end