Class: Shared::Installations

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

Instance Attribute Summary

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from MutableCollection

#delete

Methods inherited from Collection

#each

Constructor Details

#initialize(location, client, installation_class) ⇒ Installations

:nodoc:



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

def initialize(location, client, installation_class) #:nodoc:
  super(location, client, "installations", installation_class)
end

Instance Method Details

#create(installation_image) ⇒ Object

Creates an installation from the installation_image



27
28
29
# File 'lib/vas/shared/installations.rb', line 27

def create(installation_image)
  entry_class.new(client.post(location, { :image => installation_image.location }, "installation"), client)
end