Class: GoTransit::Schedule::Trip::Stop
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::Schedule::Trip::Stop
- Defined in:
- lib/go_transit/resources/schedule/trip/stop.rb
Defined Under Namespace
Classes: ArrivalTime, DepartureTime, Track
Instance Attribute Summary collapse
-
#arrival_time ⇒ Object
Returns the value of attribute arrival_time.
-
#code ⇒ Object
Returns the value of attribute code.
-
#departure_time ⇒ Object
Returns the value of attribute departure_time.
-
#remark ⇒ Object
Returns the value of attribute remark.
-
#status ⇒ Object
Returns the value of attribute status.
-
#track ⇒ Object
Returns the value of attribute track.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#arrival_time ⇒ Object
Returns the value of attribute arrival_time.
3 4 5 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 3 def arrival_time @arrival_time end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 3 def code @code end |
#departure_time ⇒ Object
Returns the value of attribute departure_time.
3 4 5 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 3 def departure_time @departure_time end |
#remark ⇒ Object
Returns the value of attribute remark.
3 4 5 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 3 def remark @remark end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 3 def status @status end |
#track ⇒ Object
Returns the value of attribute track.
3 4 5 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 3 def track @track end |
Instance Method Details
#anchor_date=(date) ⇒ Object
6 7 8 9 |
# File 'lib/go_transit/resources/schedule/trip/stop.rb', line 6 def anchor_date=(date) arrival_time.anchor_date = date departure_time.anchor_date = date end |