Class: Chouette::Geometry::StopAreaPresenter

Inherits:
Object
  • Object
show all
Includes:
GeneralPresenter
Defined in:
app/presenters/chouette/geometry/stop_area_presenter.rb

Instance Method Summary collapse

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

#geometryObject

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