Sha256: 8bb7cc493be03a3e46f5cd83ef26febfc3008b036090912b56a863005a3ec126
Contents?: true
Size: 385 Bytes
Versions: 4
Compression:
Stored size: 385 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 street_address street_number route].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 & 2 rubygems
Version | Path |
---|---|
geocoder-1.1.9 | lib/geocoder/results/test.rb |
geocoder-1.1.8 | lib/geocoder/results/test.rb |
geocoder-1.1.7 | lib/geocoder/results/test.rb |
geocoder-sgonyea-1.1.6.1 | lib/geocoder/results/test.rb |