Sha256: f58998a39f09b2b13dc64cde56686c40014e23bb7dc40a2795554e546a010805

Contents?: true

Size: 344 Bytes

Versions: 4

Compression:

Stored size: 344 Bytes

Contents

require 'geocoder/results/base'

module Geocoder
  module Result
    class Test < Base

      %w[latitude longitude city state state_code province
      province_code postal_code country country_code address].each do |attr|
        define_method(attr) do
          @data[attr.to_s] || @data[attr.to_sym]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geocoder-1.1.6 lib/geocoder/results/test.rb
geocoder-1.1.5 lib/geocoder/results/test.rb
geocoder-1.1.4 lib/geocoder/results/test.rb
geocoder-1.1.3 lib/geocoder/results/test.rb