Class: GoTransit::ServiceUpdate::Exceptions::Trip
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::ServiceUpdate::Exceptions::Trip
- Defined in:
- lib/go_transit/resources/service_update/exceptions/trip.rb
Defined Under Namespace
Classes: Stop
Instance Attribute Summary collapse
-
#is_cancelled ⇒ Object
Returns the value of attribute is_cancelled.
-
#is_override ⇒ Object
Returns the value of attribute is_override.
-
#stops ⇒ Object
Returns the value of attribute stops.
-
#trip_name ⇒ Object
Returns the value of attribute trip_name.
-
#trip_number ⇒ Object
Returns the value of attribute trip_number.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#is_cancelled ⇒ Object
Returns the value of attribute is_cancelled.
3 4 5 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3 def is_cancelled @is_cancelled end |
#is_override ⇒ Object
Returns the value of attribute is_override.
3 4 5 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3 def is_override @is_override end |
#stops ⇒ Object
Returns the value of attribute stops.
3 4 5 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3 def stops @stops end |
#trip_name ⇒ Object
Returns the value of attribute trip_name.
3 4 5 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3 def trip_name @trip_name end |
#trip_number ⇒ Object
Returns the value of attribute trip_number.
3 4 5 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3 def trip_number @trip_number end |
Instance Method Details
#cancelled? ⇒ Boolean
6 7 8 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 6 def cancelled? is_cancelled.to_i.positive? end |
#override? ⇒ Boolean
10 11 12 |
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 10 def override? is_override.to_i.positive? end |