Class: App42::Geo::GeoPoint
- Inherits:
-
App42Response
- Object
- App42Response
- App42::Geo::GeoPoint
- Defined in:
- lib/geo/GeoPoint.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lng ⇒ Object
Returns the value of attribute lng.
-
#marker ⇒ Object
Returns the value of attribute marker.
Attributes inherited from App42Response
#isResponseSuccess, #strResponse, #totalRecords
Instance Method Summary collapse
- #GeoPoint(lat, lng, marker) ⇒ Object
-
#getJSONObject ⇒ Object
Values coming from response are converted into JSON format.
Instance Attribute Details
#lat ⇒ Object
Returns the value of attribute lat.
17 18 19 |
# File 'lib/geo/GeoPoint.rb', line 17 def lat @lat end |
#lng ⇒ Object
Returns the value of attribute lng.
17 18 19 |
# File 'lib/geo/GeoPoint.rb', line 17 def lng @lng end |
#marker ⇒ Object
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 |
#getJSONObject ⇒ Object
Values coming from response are converted into JSON format.
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 |