Sha256: 44dca33acfc2e0a5190ea8b8ade39c3516eed710407ce91c8992edaab3367f37

Contents?: true

Size: 233 Bytes

Versions: 8

Compression:

Stored size: 233 Bytes

Contents

class GeocoderResponse < Struct.new(:code, :latitude, :longitude)
  def self.from_array(array)
     array.collect do |geocode|
      from_hash(:code => geocode[0], :latitude => geocode[1], :longitude => geocode[2])
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
threetaps-client-1.0.6 lib/dto/geocoder/geocoder_response.rb
threetaps-client-1.0.5 lib/dto/geocoder/geocoder_response.rb
threetaps-client-1.0.4 lib/dto/geocoder/geocoder_response.rb
threetaps-client-1.0.3 lib/dto/geocoder/geocoder_response.rb
threetaps-client-1.0.2 lib/dto/geocoder/geocoder_response.rb
threetaps-client-1.0.1 lib/dto/geocoder/geocoder_response.rb
threetaps-client-1.0.0 lib/dto/geocoder/geocoder_response.rb
threetaps-client-0.5.1 lib/dto/geocoder/geocoder_response.rb