class App42::Geo::Point

Attributes

lat[RW]
lng[RW]
marker[RW]

Public Class Methods

new(geo) click to toggle source

This is a constructor that takes no parameter

# File lib/geo/Geo.rb, line 31
def initialize(geo)
  geo.pointList.push(self);
end

Public Instance Methods

to_s() click to toggle source

Returns the Geo Response in JSON format.

@return the response in JSON format.

# File lib/geo/Geo.rb, line 45
def to_s
  return "Lat : #{@lat}" + "Long : #{@lng}" + "Marker : #{@marker}";
end