Sha256: 457585c9d6dc0d27a5b866b77f12694f779432df0da2bfe55d9106786fb6590b
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # # This Geo Point object is the value object which contains the properties of # Geo Point. # # module App42 module Geo class GeoPoint < App42Response attr_accessor :lat,:lng,:marker @lat @lng @marker def GeoPoint(lat, lng, marker) @lat = lat @lng = lng @marker = marker end # # Values coming from response are converted into JSON format. # # @return JSON Response # @throws JSONException # def getJSONObject() obj = Hash.new obj.store("lat", lat); obj.store("lng", lng); obj.store("marker", marker); return obj end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/geo/GeoPoint.rb |