Class: NJTransit::Resources::RailGTFS
- Defined in:
- lib/njtransit/resources/rail_gtfs.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#alerts ⇒ Object
Returns Rail GTFS-RT alerts as protobuf binary.
-
#schedule_data ⇒ Object
Returns Rail GTFS static schedule data as ZIP binary.
-
#trip_updates ⇒ Object
Returns Rail GTFS-RT trip updates as protobuf binary.
-
#vehicle_positions ⇒ Object
Returns Rail GTFS-RT vehicle positions as protobuf binary.
Methods inherited from Base
Constructor Details
This class inherits a constructor from NJTransit::Resources::Base
Instance Method Details
#alerts ⇒ Object
Returns Rail GTFS-RT alerts as protobuf binary
12 13 14 |
# File 'lib/njtransit/resources/rail_gtfs.rb', line 12 def alerts client.post_form_raw("/api/GTFSRT/getAlerts") end |
#schedule_data ⇒ Object
Returns Rail GTFS static schedule data as ZIP binary
7 8 9 |
# File 'lib/njtransit/resources/rail_gtfs.rb', line 7 def schedule_data client.post_form_raw("/api/GTFSRT/getGTFS") end |
#trip_updates ⇒ Object
Returns Rail GTFS-RT trip updates as protobuf binary
17 18 19 |
# File 'lib/njtransit/resources/rail_gtfs.rb', line 17 def trip_updates client.post_form_raw("/api/GTFSRT/getTripUpdates") end |
#vehicle_positions ⇒ Object
Returns Rail GTFS-RT vehicle positions as protobuf binary
22 23 24 |
# File 'lib/njtransit/resources/rail_gtfs.rb', line 22 def vehicle_positions client.post_form_raw("/api/GTFSRT/getVehiclePositions") end |