def unpack(object, options = {})
      transformer = options[:transformer] || options[:as]
      transformer ? transformer.call(object) : object
    end
def unpack(object, options = {})
      transformer = options[:transformer] || options[:as]
      transformer ? transformer.call(object) : object
    end
Finds and uses the transformer for a given incoming object to
 unpack it into a useful data type.
 @param [Hash, Array<Hash>] object the response object to unpack
 @param [Hash] options the unpacking options
 @option options [Hash] :transformer,:as the transformer to use
 @return The transformed data or the data itself when no transformer is specified.