Class: Chouette::Geometry::StopAreaPresenter
- Inherits:
-
Object
- Object
- Chouette::Geometry::StopAreaPresenter
- Includes:
- GeneralPresenter
- Defined in:
- app/presenters/chouette/geometry/stop_area_presenter.rb
Instance Method Summary collapse
-
#geometry ⇒ Object
return line geometry based on CommercialStopPoint.
-
#initialize(stop_area) ⇒ StopAreaPresenter
constructor
A new instance of StopAreaPresenter.
Constructor Details
#initialize(stop_area) ⇒ StopAreaPresenter
Returns a new instance of StopAreaPresenter.
4 5 6 |
# File 'app/presenters/chouette/geometry/stop_area_presenter.rb', line 4 def initialize(stop_area) @stop_area = stop_area end |
Instance Method Details
#geometry ⇒ Object
return line geometry based on CommercialStopPoint
10 11 12 |
# File 'app/presenters/chouette/geometry/stop_area_presenter.rb', line 10 def geometry to_point_feature( @stop_area) end |