Sha256: cb5086b9c31bde5a5250cf0458dfd479572db386020d3bd79f1121f4e5e0d565
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
module Cas module Client class URL def initialize(url) begin @url = URI(url) rescue URI::Error => e raise e end end def append_path(path_string) Cas::Client::URL.new("#{@url}#{path_string}") end def add_query(query_string) if @url.query.nil? @url.query = query_string else @url.query += "&#{query_string}" end @url end def to_uri URI(@url.to_s) end def to_s @url.to_s end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cas-client-0.2.1 | lib/cas/client/url.rb |
cas-client-0.2.0 | lib/cas/client/url.rb |
cas-client-0.1.3 | lib/cas/client/url.rb |