class Ropenstack::BlockStorage
-
Name:
BlockStorage
-
Description: Implementation of the Block Storage API Client in Ruby.
-
Author: Sam ‘Tehsmash’ Betts
-
Date: 01/15/2013
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