class Ropenstack::Image

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