def collection_uri(input, options={})
      case input.to_s
      when /^[\w-]+$/
        options[:state] ? ::URI.parse("https://api.tenderapp.com/#{site}/#{input}/#{options[:state]}") : ::URI.parse("https://api.tenderapp.com/#{site}/#{input}")
      when %r[^https?://api\.tenderapp\.com/#{site}/[\w-]+]
        ::URI.parse(input.to_s)
      else
        raise Love::Exception, "This does not appear to be a valid Tender category URI!"
      end
    end
def collection_uri(input, options={})
      case input.to_s
      when /^[\w-]+$/
        options[:state] ? ::URI.parse("https://api.tenderapp.com/#{site}/#{input}/#{options[:state]}") : ::URI.parse("https://api.tenderapp.com/#{site}/#{input}")
      when %r[^https?://api\.tenderapp\.com/#{site}/[\w-]+]
        ::URI.parse(input.to_s)
      else
        raise Love::Exception, "This does not appear to be a valid Tender category URI!"
      end
    end
Returns a collection URI, based on an URI instance, a complete URI string or just a resource name.
 @return [URI] The URI on which the REST resource collection is accessible through the Tender REST API.
 @raise [Love::Exception] If the input cannot be converted into a resource collection URI.