Class: GoTransit::Stop::Station
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::Stop::Station
- Defined in:
- lib/go_transit/resources/stop/station.rb
Instance Attribute Summary collapse
-
#location_code ⇒ Object
Returns the value of attribute location_code.
-
#location_name ⇒ Object
Returns the value of attribute location_name.
-
#location_type ⇒ Object
Returns the value of attribute location_type.
-
#public_stop_id ⇒ Object
Returns the value of attribute public_stop_id.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#location_code ⇒ Object
Returns the value of attribute location_code.
3 4 5 |
# File 'lib/go_transit/resources/stop/station.rb', line 3 def location_code @location_code end |
#location_name ⇒ Object
Returns the value of attribute location_name.
3 4 5 |
# File 'lib/go_transit/resources/stop/station.rb', line 3 def location_name @location_name end |
#location_type ⇒ Object
Returns the value of attribute location_type.
3 4 5 |
# File 'lib/go_transit/resources/stop/station.rb', line 3 def location_type @location_type end |
#public_stop_id ⇒ Object
Returns the value of attribute public_stop_id.
3 4 5 |
# File 'lib/go_transit/resources/stop/station.rb', line 3 def public_stop_id @public_stop_id end |
Instance Method Details
#bus? ⇒ Boolean
10 11 12 |
# File 'lib/go_transit/resources/stop/station.rb', line 10 def bus? location_type.include?("Bus") end |
#train? ⇒ Boolean
6 7 8 |
# File 'lib/go_transit/resources/stop/station.rb', line 6 def train? location_type.include?("Train") end |