Class: SJCBusSchedule::Schedule
- Inherits:
-
Object
- Object
- SJCBusSchedule::Schedule
- Defined in:
- lib/sjc_bus_schedule/schedule.rb
Instance Attribute Summary collapse
-
#hours ⇒ Object
readonly
Returns the value of attribute hours.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
-
#references ⇒ Object
readonly
Returns the value of attribute references.
Instance Method Summary collapse
-
#initialize(period:, hours:, references:) ⇒ Schedule
constructor
A new instance of Schedule.
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
#hours ⇒ Object (readonly)
Returns the value of attribute hours.
4 5 6 |
# File 'lib/sjc_bus_schedule/schedule.rb', line 4 def hours @hours end |
#period ⇒ Object (readonly)
Returns the value of attribute period.
4 5 6 |
# File 'lib/sjc_bus_schedule/schedule.rb', line 4 def period @period end |
#references ⇒ Object (readonly)
Returns the value of attribute references.
4 5 6 |
# File 'lib/sjc_bus_schedule/schedule.rb', line 4 def references @references end |