class Ropenstack::Image
-
Name:
Image
-
Description: Implementation of the Glance API Client in Ruby
-
Author: Sam ‘Tehsmash’ Betts, John Davidge
-
Date: 30/06/2014
Public Class Methods
new(location, token, type)
click to toggle source
Calls superclass method
Ropenstack::OpenstackService::new
# File lib/ropenstack/image.rb, line 15 def initialize(location, token, type) super(location, token) case type when "image" then extend Version1 when "imagev2" then extend Version2 else raise Ropenstack::RopenstackError, "Invalid type passed to Image" end end