Class: GoTransit::Schedule::Line::Trip::Stop
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::Schedule::Line::Trip::Stop
- Defined in:
- lib/go_transit/resources/schedule/line/trip/stop.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#is_major ⇒ Object
Returns the value of attribute is_major.
-
#order ⇒ Object
Returns the value of attribute order.
-
#sorting_time ⇒ Object
Returns the value of attribute sorting_time.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3 def code @code end |
#is_major ⇒ Object
Returns the value of attribute is_major.
3 4 5 |
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3 def is_major @is_major end |
#order ⇒ Object
Returns the value of attribute order.
3 4 5 |
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3 def order @order end |
#sorting_time ⇒ Object
Returns the value of attribute sorting_time.
3 4 5 |
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3 def sorting_time @sorting_time end |
#time ⇒ Object
Returns the value of attribute time.
3 4 5 |
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3 def time @time end |
Instance Method Details
#major? ⇒ Boolean
5 6 7 |
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 5 def major? is_major.to_i.positive? end |