Class: Puppetserver::Ca::Utils::HttpClient::URL

Inherits:
Struct
  • Object
show all
Defined in:
lib/puppetserver/ca/utils/http_client.rb

Overview

Like URI, but not… maybe of suspicious value

Instance Method Summary collapse

Instance Method Details

#full_urlObject



131
132
133
134
# File 'lib/puppetserver/ca/utils/http_client.rb', line 131

def full_url
  protocol + '://' + host + ':' + port + '/' +
  [endpoint, version, resource_type, resource_name].join('/')
end

#to_uriObject



136
137
138
# File 'lib/puppetserver/ca/utils/http_client.rb', line 136

def to_uri
  URI(full_url)
end