Sha256: 459cb7297dd788f193beb4362d1c5e1af27c06f09eb55d19a198937fc646679a

Contents?: true

Size: 386 Bytes

Versions: 73

Compression:

Stored size: 386 Bytes

Contents

module FbGraph
  class Location
    include Comparison
    include Serialization

    attr_accessor :latitude, :longitude

    def initialize(attriutes = {})
      @latitude  = attriutes[:latitude]
      @longitude = attriutes[:longitude]
    end

    def to_hash(options = {})
      {
        :latitude  => self.latitude,
        :longitude => self.longitude
      }
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
fb_graph-2.2.0.beta lib/fb_graph/location.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/location.rb
fb_graph-2.2.0.alpha lib/fb_graph/location.rb
fb_graph-2.1.13 lib/fb_graph/location.rb
fb_graph-2.1.12 lib/fb_graph/location.rb
fb_graph-2.1.11 lib/fb_graph/location.rb
fb_graph-2.1.10 lib/fb_graph/location.rb
fb_graph-2.1.9 lib/fb_graph/location.rb
fb_graph-2.1.8 lib/fb_graph/location.rb
fb_graph-2.1.7 lib/fb_graph/location.rb
fb_graph-2.1.6 lib/fb_graph/location.rb
fb_graph-2.1.5 lib/fb_graph/location.rb
fb_graph-2.1.4 lib/fb_graph/location.rb
fb_graph-2.1.3 lib/fb_graph/location.rb
fb_graph-2.1.2 lib/fb_graph/location.rb
fb_graph-2.1.1 lib/fb_graph/location.rb
fb_graph-2.1.0 lib/fb_graph/location.rb
fb_graph-2.1.0.alpha lib/fb_graph/location.rb
fb_graph-2.0.2 lib/fb_graph/location.rb
fb_graph-2.0.1 lib/fb_graph/location.rb