class Ropenstack::OpenstackService

Public Class Methods

new(location, token) click to toggle source
# File lib/ropenstack/common/openstackservice.rb, line 12
def initialize(location, token)
  @location = location
  @token = token
end

Private Instance Methods

address(endpoint) click to toggle source

Take the location URI parsed in on creation and append an endpoint. Returns a new URI

# File lib/ropenstack/common/openstackservice.rb, line 23
def address(endpoint)
  uri = URI.parse(@location.to_s + endpoint)
  return uri
end