app/jobs/estimate_traffic_for_property_job.rb
Method perform
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def perform(property_id)
property = Property.find(property_id)
data = TrafficEstimator.lookup(property.url)[:data]
return if data.blank?
estimate = PropertyTrafficEstimate.new