module RestClient::Payload
def has_file?(params)
def has_file?(params) params.any? do |_, v| case v when Hash has_file?(v) else v.respond_to?(:path) && v.respond_to?(:read) end end end
def has_file?(params) params.any? do |_, v| case v when Hash has_file?(v) else v.respond_to?(:path) && v.respond_to?(:read) end end end