Class: Chouette::Geometry::ConnectionLinkPresenter

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

Instance Method Summary collapse

Constructor Details

#initialize(connection_link) ⇒ ConnectionLinkPresenter

Returns a new instance of ConnectionLinkPresenter.



4
5
6
# File 'app/presenters/chouette/geometry/connection_link_presenter.rb', line 4

def initialize(connection_link)
  @connection_link = connection_link
end

Instance Method Details

#geometryObject



8
9
10
# File 'app/presenters/chouette/geometry/connection_link_presenter.rb', line 8

def geometry
  to_line_string_feature( @connection_link.stop_areas)
end