Class: Gemfire::ApplicationCode
- Inherits:
-
Shared::Resource
- Object
- Shared::Resource
- Gemfire::ApplicationCode
- Defined in:
- lib/vas/gemfire/application_code.rb
Overview
Application code in a cache server instance
Instance Attribute Summary collapse
-
#application_code_image ⇒ Object
readonly
The image that was used to create this application code.
-
#instance ⇒ Object
readonly
The cache server instance that contains this application code.
-
#name ⇒ Object
readonly
The name of the application code.
-
#version ⇒ Object
readonly
The version of the application code.
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ ApplicationCode
constructor
A new instance of ApplicationCode.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(location, client) ⇒ ApplicationCode
Returns a new instance of ApplicationCode.
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/vas/gemfire/application_code.rb', line 35 def initialize(location, client) super(location, client) @name = details["name"] @version = details["version"] @application_code_image = ApplicationCodeImage.new( Util::LinkUtils.get_link_href(details, 'application-code-image'), client) @instance = CacheServerInstance.new( Util::LinkUtils.get_link_href(details, 'cache-server-group-instance'), client) end |
Instance Attribute Details
#application_code_image ⇒ Object (readonly)
The image that was used to create this application code
30 31 32 |
# File 'lib/vas/gemfire/application_code.rb', line 30 def application_code_image @application_code_image end |
#instance ⇒ Object (readonly)
The cache server instance that contains this application code
33 34 35 |
# File 'lib/vas/gemfire/application_code.rb', line 33 def instance @instance end |
#name ⇒ Object (readonly)
The name of the application code
24 25 26 |
# File 'lib/vas/gemfire/application_code.rb', line 24 def name @name end |
#version ⇒ Object (readonly)
The version of the application code
27 28 29 |
# File 'lib/vas/gemfire/application_code.rb', line 27 def version @version end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
48 49 50 |
# File 'lib/vas/gemfire/application_code.rb', line 48 def to_s #:nodoc: "#<#{self.class} name='#@name' version=#@version>" end |