Class: App42::Geo::GeoPoint

Inherits:
App42Response show all
Defined in:
lib/geo/GeoPoint.rb

Instance Attribute Summary collapse

Attributes inherited from App42Response

#isResponseSuccess, #strResponse, #totalRecords

Instance Method Summary collapse

Instance Attribute Details

#latObject

Returns the value of attribute lat.



17
18
19
# File 'lib/geo/GeoPoint.rb', line 17

def lat
  @lat
end

#lngObject

Returns the value of attribute lng.



17
18
19
# File 'lib/geo/GeoPoint.rb', line 17

def lng
  @lng
end

#markerObject

Returns the value of attribute marker.



17
18
19
# File 'lib/geo/GeoPoint.rb', line 17

def marker
  @marker
end

Instance Method Details

#GeoPoint(lat, lng, marker) ⇒ Object



21
22
23
24
25
# File 'lib/geo/GeoPoint.rb', line 21

def GeoPoint(lat, lng, marker)
  @lat = lat
  @lng = lng
  @marker = marker
end

#getJSONObjectObject

Values coming from response are converted into JSON format.

Returns:

  • JSON Response



34
35
36
37
38
39
40
# File 'lib/geo/GeoPoint.rb', line 34

def getJSONObject()
  obj = Hash.new
  obj.store("lat", lat);
  obj.store("lng", lng);
  obj.store("marker", marker);
  return obj
end