Class: CloudMade::MultiLine

Inherits:
Geometry show all
Defined in:
lib/cloudmade/geometry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Geometry

parse

Constructor Details

#initialize(coords) ⇒ MultiLine

Returns a new instance of MultiLine.



80
81
82
# File 'lib/cloudmade/geometry.rb', line 80

def initialize(coords)
  @lines = coords.map { |line_coords| Line.new(line_coords) }
end

Instance Attribute Details

#linesObject

Returns the value of attribute lines.



78
79
80
# File 'lib/cloudmade/geometry.rb', line 78

def lines
  @lines
end

Instance Method Details

#to_sObject



84
85
86
# File 'lib/cloudmade/geometry.rb', line 84

def to_s
  "MultiLine(#{@lines.join(',')})"
end