class Ropenstack::OpenstackService
-
Name:
OpenstackService
-
Description: A parent class for all the openstack service classes, with functions
which are generic across all services.
-
Author: Sam ‘Tehsmash’ Betts
-
Date: 01/15/2013
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