Class: GoTransit::ServiceUpdate::UnionDepartures::Trip
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::ServiceUpdate::UnionDepartures::Trip
- Defined in:
- lib/go_transit/resources/service_update/union_departures/trip.rb
Defined Under Namespace
Classes: Stop
Instance Attribute Summary collapse
-
#info ⇒ Object
Returns the value of attribute info.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#service ⇒ Object
Returns the value of attribute service.
-
#service_type ⇒ Object
Returns the value of attribute service_type.
-
#stops ⇒ Object
Returns the value of attribute stops.
-
#time ⇒ Object
Returns the value of attribute time.
-
#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
#info ⇒ Object
Returns the value of attribute info.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def info @info end |
#platform ⇒ Object
Returns the value of attribute platform.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def platform @platform end |
#service ⇒ Object
Returns the value of attribute service.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def service @service end |
#service_type ⇒ Object
Returns the value of attribute service_type.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def service_type @service_type end |
#stops ⇒ Object
Returns the value of attribute stops.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def stops @stops end |
#time ⇒ Object
Returns the value of attribute time.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def time @time end |
#trip_number ⇒ Object
Returns the value of attribute trip_number.
3 4 5 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 3 def trip_number @trip_number end |
Instance Method Details
#platforms ⇒ Object
6 7 8 9 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 6 def platforms return if platform == "-" platform.split("&").collect(&:strip) end |
#time_utc ⇒ Object
11 12 13 |
# File 'lib/go_transit/resources/service_update/union_departures/trip.rb', line 11 def time_utc to_utc(time) end |