Class: Shared::Installation
- Defined in:
- lib/vas/shared/installations.rb
Direct Known Subclasses
Gemfire::Installation, RabbitMq::Installation, TcServer::Installation
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
The group that contains the installation.
-
#installation_image ⇒ Object
readonly
The installation image that was used to create the installation.
-
#version ⇒ Object
readonly
The installation’s version.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(location, client, installation_image_class, group_class) ⇒ Installation
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(location, client, installation_image_class, group_class) ⇒ Installation
:nodoc:
44 45 46 47 48 49 50 |
# File 'lib/vas/shared/installations.rb', line 44 def initialize(location, client, installation_image_class, group_class) #:nodoc: super(location, client) @version = details["version"] @installation_image = installation_image_class.new(Util::LinkUtils.get_link_href(details, "installation-image"), client) @group = group_class.new(Util::LinkUtils.get_link_href(details, "group"), client) end |
Instance Attribute Details
#group ⇒ Object (readonly)
The group that contains the installation
42 43 44 |
# File 'lib/vas/shared/installations.rb', line 42 def group @group end |
#installation_image ⇒ Object (readonly)
The installation image that was used to create the installation
39 40 41 |
# File 'lib/vas/shared/installations.rb', line 39 def installation_image @installation_image end |
#version ⇒ Object (readonly)
The installation’s version
36 37 38 |
# File 'lib/vas/shared/installations.rb', line 36 def version @version end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
52 53 54 |
# File 'lib/vas/shared/installations.rb', line 52 def to_s #:nodoc: "#<#{self.class} version='#@version'>" end |