Class: GoTransit::Stop::NextService::Line

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/go_transit/resources/stop/next_service/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiResource

#initialize

Constructor Details

This class inherits a constructor from GoTransit::ApiResource

Instance Attribute Details

#actual_platformObject

Returns the value of attribute actual_platform.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def actual_platform
  @actual_platform
end

#computed_departure_timeObject

Returns the value of attribute computed_departure_time.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def computed_departure_time
  @computed_departure_time
end

#departure_statusObject

Returns the value of attribute departure_status.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def departure_status
  @departure_status
end

#direction_codeObject

Returns the value of attribute direction_code.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def direction_code
  @direction_code
end

#direction_nameObject

Returns the value of attribute direction_name.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def direction_name
  @direction_name
end

#latitudeObject

Returns the value of attribute latitude.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def latitude
  @latitude
end

#line_codeObject

Returns the value of attribute line_code.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def line_code
  @line_code
end

#line_nameObject

Returns the value of attribute line_name.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def line_name
  @line_name
end

#longitudeObject

Returns the value of attribute longitude.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def longitude
  @longitude
end

#scheduled_departure_timeObject

Returns the value of attribute scheduled_departure_time.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def scheduled_departure_time
  @scheduled_departure_time
end

#scheduled_platformObject

Returns the value of attribute scheduled_platform.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def scheduled_platform
  @scheduled_platform
end

#service_typeObject

Returns the value of attribute service_type.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def service_type
  @service_type
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def status
  @status
end

#stop_codeObject

Returns the value of attribute stop_code.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def stop_code
  @stop_code
end

#trip_numberObject

Returns the value of attribute trip_number.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def trip_number
  @trip_number
end

#trip_orderObject

Returns the value of attribute trip_order.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def trip_order
  @trip_order
end

#update_timeObject

Returns the value of attribute update_time.



3
4
5
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 3

def update_time
  @update_time
end

Instance Method Details

#computed_departure_time_utcObject



14
15
16
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 14

def computed_departure_time_utc
  to_utc(computed_departure_time)
end

#scheduled_departure_time_utcObject



10
11
12
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 10

def scheduled_departure_time_utc
  to_utc(scheduled_departure_time)
end

#update_time_utcObject



18
19
20
# File 'lib/go_transit/resources/stop/next_service/line.rb', line 18

def update_time_utc
  to_utc(update_time)
end