class Cas::Client::URL

Public Class Methods

new(url) click to toggle source
# File lib/cas/client/url.rb, line 4
def initialize(url)
  begin
    @url = URI(url)
  rescue URI::Error => e
    raise e
  end
end

Public Instance Methods

add_query(query_string) click to toggle source
# File lib/cas/client/url.rb, line 16
def add_query(query_string)
  if @url.query.nil?
    @url.query = query_string
  else
    @url.query += "&#{query_string}"
  end
  @url
end
append_path(path_string) click to toggle source
# File lib/cas/client/url.rb, line 12
def append_path(path_string)
  Cas::Client::URL.new("#{@url}#{path_string}")
end
to_s() click to toggle source
# File lib/cas/client/url.rb, line 29
def to_s
  @url.to_s
end
to_uri() click to toggle source
# File lib/cas/client/url.rb, line 25
def to_uri
  URI(@url.to_s)
end