Class: GoTransit::ServiceAtAGlance::Trip
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::ServiceAtAGlance::Trip
- Defined in:
- lib/go_transit/resources/service_at_a_glance/trip.rb
Instance Attribute Summary collapse
-
#at_station_code ⇒ Object
Returns the value of attribute at_station_code.
-
#bus_type ⇒ Object
Returns the value of attribute bus_type.
-
#cars ⇒ Object
Returns the value of attribute cars.
-
#course ⇒ Object
Returns the value of attribute course.
-
#delay_seconds ⇒ Object
Returns the value of attribute delay_seconds.
-
#display ⇒ Object
Returns the value of attribute display.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#first_stop_code ⇒ Object
Returns the value of attribute first_stop_code.
-
#is_in_motion ⇒ Object
Returns the value of attribute is_in_motion.
-
#last_stop_code ⇒ Object
Returns the value of attribute last_stop_code.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#line_code ⇒ Object
Returns the value of attribute line_code.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#modified_date ⇒ Object
Returns the value of attribute modified_date.
-
#next_stop_code ⇒ Object
Returns the value of attribute next_stop_code.
-
#occupancy_percentage ⇒ Object
Returns the value of attribute occupancy_percentage.
-
#prev_stop_code ⇒ Object
Returns the value of attribute prev_stop_code.
-
#route_number ⇒ Object
Returns the value of attribute route_number.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#trip_number ⇒ Object
Returns the value of attribute trip_number.
-
#variant_dir ⇒ Object
Returns the value of attribute variant_dir.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#at_station_code ⇒ Object
Returns the value of attribute at_station_code.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def at_station_code @at_station_code end |
#bus_type ⇒ Object
Returns the value of attribute bus_type.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def bus_type @bus_type end |
#cars ⇒ Object
Returns the value of attribute cars.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def cars @cars end |
#course ⇒ Object
Returns the value of attribute course.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def course @course end |
#delay_seconds ⇒ Object
Returns the value of attribute delay_seconds.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def delay_seconds @delay_seconds end |
#display ⇒ Object
Returns the value of attribute display.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def display @display end |
#end_time ⇒ Object
Returns the value of attribute end_time.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def end_time @end_time end |
#first_stop_code ⇒ Object
Returns the value of attribute first_stop_code.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def first_stop_code @first_stop_code end |
#is_in_motion ⇒ Object
Returns the value of attribute is_in_motion.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def is_in_motion @is_in_motion end |
#last_stop_code ⇒ Object
Returns the value of attribute last_stop_code.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def last_stop_code @last_stop_code end |
#latitude ⇒ Object
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def latitude @latitude end |
#line_code ⇒ Object
Returns the value of attribute line_code.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def line_code @line_code end |
#longitude ⇒ Object
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def longitude @longitude end |
#modified_date ⇒ Object
Returns the value of attribute modified_date.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def modified_date @modified_date end |
#next_stop_code ⇒ Object
Returns the value of attribute next_stop_code.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def next_stop_code @next_stop_code end |
#occupancy_percentage ⇒ Object
Returns the value of attribute occupancy_percentage.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def occupancy_percentage @occupancy_percentage end |
#prev_stop_code ⇒ Object
Returns the value of attribute prev_stop_code.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def prev_stop_code @prev_stop_code end |
#route_number ⇒ Object
Returns the value of attribute route_number.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def route_number @route_number end |
#start_time ⇒ Object
Returns the value of attribute start_time.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def start_time @start_time end |
#trip_number ⇒ Object
Returns the value of attribute trip_number.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def trip_number @trip_number end |
#variant_dir ⇒ Object
Returns the value of attribute variant_dir.
3 4 5 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 3 def variant_dir @variant_dir end |
Instance Method Details
#in_motion? ⇒ Boolean
10 11 12 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 10 def in_motion? is_in_motion end |
#modified_date_utc ⇒ Object
14 15 16 |
# File 'lib/go_transit/resources/service_at_a_glance/trip.rb', line 14 def modified_date_utc to_utc(modified_date) end |