class Addressable::URI

def to_hash

Returns:
  • (Hash) - The URI as a Hash of components.
def to_hash
  return {
    :scheme => self.scheme,
    :user => self.user,
    :password => self.password,
    :host => self.host,
    :port => self.port,
    :path => self.path,
    :query => self.query,
    :fragment => self.fragment
  }
end