lib/access/hotel.rb in access-2.1.4 vs lib/access/hotel.rb in access-2.1.5
- old
+ new
@@ -15,12 +15,9 @@
def self.find(hotel_key, options = {})
Access::Api.new.find_hotel hotel_key, options
end
def self.process_batch(chunk)
- chunk.map do |hotel|
- JSON.parse(hotel.to_json, object_class: OpenStruct)
- end
+ chunk = JSON.parse(chunk.to_json, object_class: OpenStruct)
end
-
end
end
\ No newline at end of file