Class: Shared::Installations Abstract

Inherits:
MutableCollection show all
Defined in:
lib/vas/shared/installations.rb

Overview

This class is abstract.

A collection of installations

Instance Attribute Summary

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from MutableCollection

#create_image

Methods inherited from Collection

#each, #reload

Constructor Details

#initialize(location, client, installation_class) ⇒ Installations

Returns a new instance of Installations.



23
24
25
# File 'lib/vas/shared/installations.rb', line 23

def initialize(location, client, installation_class)
  super(location, client, 'installations', installation_class)
end

Instance Method Details

#create(installation_image) ⇒ Installation

Creates a new installation

Parameters:

  • installation_image (InstallationImage)

    the installation image to use to create the installation

Returns:



32
33
34
# File 'lib/vas/shared/installations.rb', line 32

def create(installation_image)
  super({ :image => installation_image.location }, 'installation')
end