Sha256: 371ec29ce3c19ff1a0077d70f36b28acfd67e0c3568da02316aecb9e710312d5
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 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 { :latitude => self.latitude, :longitude => self.longitude } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-1.2.5 | lib/fb_graph/location.rb |
fb_graph-1.2.4 | lib/fb_graph/location.rb |