class Eclix::Url

Attributes

base[R]
path[R]

Public Class Methods

new(server, path) click to toggle source
# File lib/eclix/publication_creator.rb, line 91
def initialize(server, path)
  @server=server
  @path=path
  @base=base_url(server)
end

Public Instance Methods

absolute() click to toggle source
# File lib/eclix/publication_creator.rb, line 97
def absolute
  "#{base}/#{path}"
end
base_url(server) click to toggle source
# File lib/eclix/publication_creator.rb, line 101
def base_url(server)
  "http://#{server.host}:#{server.port}"
end