lib/pupa/processor.rb
def load_scraped_object(properties)
      type = properties['_type'] || properties[:_type]
      if type
        type.camelize.constantize.new(properties)
      else
        raise Errors::MissingObjectTypeError, "missing _type: #{JSON.dump(properties)}"
      end
    end
def load_scraped_object(properties)
      type = properties['_type'] || properties[:_type]
      if type
        type.camelize.constantize.new(properties)
      else
        raise Errors::MissingObjectTypeError, "missing _type: #{JSON.dump(properties)}"
      end
    end
Loads a scraped object from its properties.

 @param [Hash] properties the object's properties
 @return [Object] a scraped object
 @raises [Pupa::Errors::MissingObjectTypeError] if the scraped object is
   missing a `_type` property.