Sha256: 327061a7cd0412e059b53afcc6c24b2cd1ae041aa638f873fa773df3d5b98063
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
module Access class Geolocation def self.search(options = {}) Access::Api.new.geolocation_search options end def self.find(options = {}) Access::Api.new.geolocation_find options end def self.process_batch(chunk) chunk.map { |location| new(location) } end def initialize(values) self.class.class_eval {attr_reader *values.keys } values.each do |attribute_name, attribute_value| self.instance_variable_set("@#{attribute_name}", attribute_value) end @geolocation = Geolocation.new(@geolocation) if @geolocation end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
access-2.0.26 | lib/access/geolocation.rb |
access-2.0.25 | lib/access/geolocation.rb |