class WADL::URIParts
Classes to keep track of the logical structure of a URI.
Public Instance Methods
==(x)
click to toggle source
Calls superclass method
# File lib/wadl/uri_parts.rb, line 55 def ==(x) x.respond_to?(:to_str) ? to_str == x : super end
hash(x)
click to toggle source
# File lib/wadl/uri_parts.rb, line 51 def hash(x) to_str.hash end
inspect()
click to toggle source
# File lib/wadl/uri_parts.rb, line 42 def inspect hs = " Plus headers: #{headers.inspect}" if headers "#{to_s}#{hs}" end
query_string()
click to toggle source
# File lib/wadl/uri_parts.rb, line 47 def query_string query.join('&') end
to_s()
click to toggle source
# File lib/wadl/uri_parts.rb, line 35 def to_s qs = "#{uri.include?('?') ? '&' : '?'}#{query_string}" unless query.empty? "#{uri}#{qs}" end
Also aliased as: to_str