class Ropenstack::BlockStorage

Public Class Methods

new(location, token, type) click to toggle source
Calls superclass method
# File lib/ropenstack/blockStorage.rb, line 15
def initialize(location, token, type)
  super(location, token)
  case type
  when "volume" then extend Version1
  when "volumev2" then extend Version2
  else 
    raise Ropenstack::RopenstackError, "Invalid Type Passed to BlockStorage"
  end
end