Class: SJCBusSchedule::Schedule

Inherits:
Object
  • Object
show all
Defined in:
lib/sjc_bus_schedule/schedule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(period:, hours:, references:) ⇒ Schedule

Returns a new instance of Schedule.



6
7
8
9
10
# File 'lib/sjc_bus_schedule/schedule.rb', line 6

def initialize(period:, hours:, references:)
  @period = period
  @hours = hours
  @references = references
end

Instance Attribute Details

#hoursObject (readonly)

Returns the value of attribute hours.



4
5
6
# File 'lib/sjc_bus_schedule/schedule.rb', line 4

def hours
  @hours
end

#periodObject (readonly)

Returns the value of attribute period.



4
5
6
# File 'lib/sjc_bus_schedule/schedule.rb', line 4

def period
  @period
end

#referencesObject (readonly)

Returns the value of attribute references.



4
5
6
# File 'lib/sjc_bus_schedule/schedule.rb', line 4

def references
  @references
end