Sha256: 1681620d707826e7d9b77356d22dcce9095f9ac6e60babc72b2ecce8006f70a0

Contents?: true

Size: 529 Bytes

Versions: 14

Compression:

Stored size: 529 Bytes

Contents

module Access
  class Geolocation
    include Access::MuchMeta

    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 { |geolocation| new(geolocation) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
      @geolocation = Geolocation.new(@geolocation) if @geolocation
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.3.0.pre.rc2 lib/access/geolocation.rb
access-2.3.0.pre.rc1 lib/access/geolocation.rb
access-2.2.0 lib/access/geolocation.rb
access-2.1.5 lib/access/geolocation.rb
access-2.1.4 lib/access/geolocation.rb
access-2.1.3 lib/access/geolocation.rb
access-2.1.2 lib/access/geolocation.rb
access-2.1.1 lib/access/geolocation.rb
access-2.1.0 lib/access/geolocation.rb
access-2.0.55 lib/access/geolocation.rb
access-2.0.54 lib/access/geolocation.rb
access-2.0.53 lib/access/geolocation.rb
access-2.0.52 lib/access/geolocation.rb
access-2.0.51 lib/access/geolocation.rb