Sha256: 13efd7084dfa1c16118a9a9e57b43033518c8ca9b206334581254b4b1b9c84a6

Contents?: true

Size: 944 Bytes

Versions: 1

Compression:

Stored size: 944 Bytes

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42Response.rb'

#
#
# 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_SDK-0.8.3 lib/geo/GeoPoint.rb