Class: GoTransit::Schedule::Trip::Stop::DepartureTime

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/go_transit/resources/schedule/trip/stop/departure_time.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

#anchor_dateObject

Returns the value of attribute anchor_date.



3
4
5
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 3

def anchor_date
  @anchor_date
end

#computedObject

Returns the value of attribute computed.



3
4
5
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 3

def computed
  @computed
end

#scheduledObject

Returns the value of attribute scheduled.



3
4
5
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 3

def scheduled
  @scheduled
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 3

def status
  @status
end

Instance Method Details

#computed_localObject



17
18
19
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 17

def computed_local
  to_local_from_anchor(computed, anchor_date)
end

#computed_utcObject



13
14
15
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 13

def computed_utc
  to_utc_from_anchor(computed, anchor_date)
end

#scheduled_localObject



9
10
11
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 9

def scheduled_local
  to_local_from_anchor(scheduled, anchor_date)
end

#scheduled_utcObject



5
6
7
# File 'lib/go_transit/resources/schedule/trip/stop/departure_time.rb', line 5

def scheduled_utc
  to_utc_from_anchor(scheduled, anchor_date)
end