class Ropenstack::Identity

Public Class Methods

new(location, port, token, type) click to toggle source
Calls superclass method Ropenstack::OpenstackService::new
# File lib/ropenstack/identity.rb, line 15
def initialize(location, port, token, type)
  super(location + ":" + port.to_s, token)
  case type
  when "identityv2" then extend Version2
  when "identityv3" then extend Version3
  else
    raise Ropenstack::RopenstackError, "Invalid Type Passed to Identity"
  end
  unless token.nil?
    @data = { "access" => { "token" => { "id" => token } } } 
  end
end