Sha256: ae2c2685275e384202fd2492fa7f8e6a4527e9ed70d66181d41243e5fac7eb85

Contents?: true

Size: 272 Bytes

Versions: 7

Compression:

Stored size: 272 Bytes

Contents

class GeocodeAddressJob < Struct.new(:geocodeable)
  def initialize(geocodeable)
  	@geocodeable = geocodeable
  end
  
  def perform
  	latlong_array = @geocodeable.geocode
  	@geocodeable.update_attributes(lat: latlong_array.first, long: latlong_array.last)
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/models/job/geocode_address_job.rb
artfully_ose-1.2.0.beta.1 app/models/job/geocode_address_job.rb
artfully_ose-1.2.0.alpha.2 app/models/job/geocode_address_job.rb
artfully_ose-1.2.0.alpha.1 app/models/job/geocode_address_job.rb
artfully_ose-1.2.0.pre.27 app/models/job/geocode_address_job.rb
artfully_ose-1.2.0.pre.26 app/models/job/geocode_address_job.rb
artfully_ose-1.2.0.pre.24 app/models/job/geocode_address_job.rb