class RouteBoxer::LatLngCollection
Attributes
points[RW]
Public Class Methods
new(points)
click to toggle source
# File lib/route_boxer/lat_lng_collection.rb, line 5 def initialize(points) @points = points end
Public Instance Methods
to_a()
click to toggle source
# File lib/route_boxer/lat_lng_collection.rb, line 9 def to_a collection = [] @points.each do |point| unless point.is_a?(RouteBoxer::LatLng) point = RouteBoxer::LatLng.new(point[0], point[1]) end collection << point end collection end