Class: WebServer::InstallationImage

Inherits:
Shared::InstallationImage show all
Defined in:
lib/vas/web_server/installation_images.rb

Overview

A Web Server installation image

Instance Attribute Summary collapse

Attributes inherited from Shared::InstallationImage

#size, #version

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::InstallationImage

#installations, #reload, #to_s

Methods included from Shared::Deletable

#delete

Constructor Details

#initialize(location, client) ⇒ InstallationImage

Returns a new instance of InstallationImage.



54
55
56
57
58
# File 'lib/vas/web_server/installation_images.rb', line 54

def initialize(location, client)
  super(location, client, Installation)
  @operating_system = details['operating-system']
  @architecture = details['architecture']
end

Instance Attribute Details

#architectureString (readonly)

Returns the architecture of the installation image.

Returns:

  • (String)

    the architecture of the installation image



51
52
53
# File 'lib/vas/web_server/installation_images.rb', line 51

def architecture
  @architecture
end

#operating_systemString (readonly)

Returns the operating system of the installation image.

Returns:

  • (String)

    the operating system of the installation image



48
49
50
# File 'lib/vas/web_server/installation_images.rb', line 48

def operating_system
  @operating_system
end