Class: Gemfire::ApplicationCode

Inherits:
Shared::Resource show all
Defined in:
lib/vas/gemfire/application_code.rb

Overview

Application code in a cache server instance

Instance Attribute Summary collapse

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

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_imageObject (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

#instanceObject (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

#nameObject (readonly)

The name of the application code



24
25
26
# File 'lib/vas/gemfire/application_code.rb', line 24

def name
  @name
end

#versionObject (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_sObject

:nodoc:



48
49
50
# File 'lib/vas/gemfire/application_code.rb', line 48

def to_s #:nodoc:
  "#<#{self.class} name='#@name' version=#@version>"
end