class Poptart::Root
Public Instance Methods
host()
click to toggle source
# File lib/poptart/root.rb, line 11 def host root_uri.port ? "#{root_uri.host}:#{root_uri.port}" : root_uri.host end
root_uri()
click to toggle source
# File lib/poptart/root.rb, line 3 def root_uri @root_uri = URI.parse(root.links.self.href) end
scheme()
click to toggle source
# File lib/poptart/root.rb, line 7 def scheme root_uri.scheme end