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