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

#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_utcObject



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

def computed_utc
  to_utc(computed)
end

#scheduled_utcObject



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

def scheduled_utc
  to_utc(scheduled)
end