Class: GoTransit::Stop::Destination
- Inherits:
-
ApiResource
- Object
- ApiResource
- GoTransit::Stop::Destination
- Includes:
- Enumerable
- Defined in:
- lib/go_transit/resources/stop/destination.rb
Defined Under Namespace
Classes: Line
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from GoTransit::ApiResource
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/go_transit/resources/stop/destination.rb', line 5 def code @code end |
#lines ⇒ Object
Returns the value of attribute lines.
5 6 7 |
# File 'lib/go_transit/resources/stop/destination.rb', line 5 def lines @lines end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/go_transit/resources/stop/destination.rb', line 5 def name @name end |
Instance Method Details
#each(&block) ⇒ Object
7 8 9 |
# File 'lib/go_transit/resources/stop/destination.rb', line 7 def each(&block) lines.each(&block) end |