class Addressable::URI
def to_hash
-
(Hash)
- The URI as aHash
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