Class: Inthegra::Line
Instance Attribute Summary collapse
-
#circular ⇒ Boolean
readonly
If is a circular line.
-
#code ⇒ String
readonly
Code of identification.
-
#first_stop ⇒ String
readonly
Where the line starts.
-
#last_stop ⇒ String
readonly
Where the line stops.
-
#name ⇒ String
readonly
Line name.
Method Summary
Methods inherited from BaseModel
Constructor Details
This class inherits a constructor from Inthegra::BaseModel
Instance Attribute Details
#circular ⇒ Boolean (readonly)
Returns if is a circular line.
17 18 19 |
# File 'lib/inthegra/model/line.rb', line 17 def circular @circular end |
#code ⇒ String (readonly)
Returns code of identification.
5 6 7 |
# File 'lib/inthegra/model/line.rb', line 5 def code @code end |
#first_stop ⇒ String (readonly)
Returns where the line starts.
11 12 13 |
# File 'lib/inthegra/model/line.rb', line 11 def first_stop @first_stop end |
#last_stop ⇒ String (readonly)
Returns where the line stops.
14 15 16 |
# File 'lib/inthegra/model/line.rb', line 14 def last_stop @last_stop end |
#name ⇒ String (readonly)
Returns line name.
8 9 10 |
# File 'lib/inthegra/model/line.rb', line 8 def name @name end |