class Diesel::URI

Public Instance Methods

to_s() click to toggle source
# File lib/diesel/uri.rb, line 15
def to_s
  build_url
end

Protected Instance Methods

build_url() click to toggle source
# File lib/diesel/uri.rb, line 21
def build_url
  host = if base_host && subdomain
           [subdomain, base_host].join('.')
         else
           self.host
         end
  [
    scheme,
    '://',
    host,
    base_path,
    resource_path
  ].join('')
end