Class: WebServer::InstallationImage
- Inherits:
-
Shared::InstallationImage
- Object
- Shared::Resource
- Shared::InstallationImage
- WebServer::InstallationImage
- Defined in:
- lib/vas/web_server/installation_images.rb
Overview
A Web Server installation image
Instance Attribute Summary collapse
-
#architecture ⇒ String
readonly
The architecture of the installation image.
-
#operating_system ⇒ String
readonly
The operating system of the installation image.
Attributes inherited from Shared::InstallationImage
Attributes included from Shared::Deletable
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ InstallationImage
constructor
A new instance of InstallationImage.
Methods inherited from Shared::InstallationImage
#installations, #reload, #to_s
Methods included from Shared::Deletable
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
#architecture ⇒ String (readonly)
Returns the architecture of the installation image.
51 52 53 |
# File 'lib/vas/web_server/installation_images.rb', line 51 def architecture @architecture end |
#operating_system ⇒ String (readonly)
Returns the operating system of the installation image.
48 49 50 |
# File 'lib/vas/web_server/installation_images.rb', line 48 def @operating_system end |