Class: Ratis::Route
- Inherits:
-
Object
- Object
- Ratis::Route
- Defined in:
- lib/ratis/route.rb
Instance Attribute Summary collapse
-
#directions ⇒ Object
Returns the value of attribute directions.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
Instance Method Summary collapse
-
#initialize(short_name, directions) ⇒ Route
constructor
A new instance of Route.
- #timetable(conditions) ⇒ Object
Constructor Details
#initialize(short_name, directions) ⇒ Route
Returns a new instance of Route.
5 6 7 8 |
# File 'lib/ratis/route.rb', line 5 def initialize(short_name, directions) self.short_name = short_name self.directions = directions end |
Instance Attribute Details
#directions ⇒ Object
Returns the value of attribute directions.
3 4 5 |
# File 'lib/ratis/route.rb', line 3 def directions @directions end |
#short_name ⇒ Object
Returns the value of attribute short_name.
3 4 5 |
# File 'lib/ratis/route.rb', line 3 def short_name @short_name end |