Class: Gemfire::ApplicationCodeImage
- Inherits:
-
Shared::Resource
- Object
- Shared::Resource
- Gemfire::ApplicationCodeImage
- Defined in:
- lib/vas/gemfire/application_code_images.rb
Overview
An application code image
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The application code image’s name.
-
#size ⇒ Object
readonly
The application code image’s size.
-
#version ⇒ Object
readonly
The application code image’s version.
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ ApplicationCodeImage
constructor
:nodoc:.
-
#live_application_code ⇒ Object
An array of the live application code that has been created from this application code image.
-
#pending_application_code ⇒ Object
An array of the pending application code that has been created from this application code image.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(location, client) ⇒ ApplicationCodeImage
:nodoc:
46 47 48 49 50 51 52 |
# File 'lib/vas/gemfire/application_code_images.rb', line 46 def initialize(location, client) #:nodoc: super(location, client) @name = details['name'] @version = details['version'] @size = details['size'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
The application code image’s name
38 39 40 |
# File 'lib/vas/gemfire/application_code_images.rb', line 38 def name @name end |
#size ⇒ Object (readonly)
The application code image’s size
44 45 46 |
# File 'lib/vas/gemfire/application_code_images.rb', line 44 def size @size end |
#version ⇒ Object (readonly)
The application code image’s version
41 42 43 |
# File 'lib/vas/gemfire/application_code_images.rb', line 41 def version @version end |
Instance Method Details
#live_application_code ⇒ Object
An array of the live application code that has been created from this application code image
55 56 57 58 59 60 |
# File 'lib/vas/gemfire/application_code_images.rb', line 55 def live_application_code application_codes = [] Util::LinkUtils.get_link_hrefs(client.get(location), "live-application-code").each { |application_code_location| application_codes << ApplicationCode.new(application_code_location, client)} application_codes end |
#pending_application_code ⇒ Object
An array of the pending application code that has been created from this application code image
63 64 65 66 67 68 |
# File 'lib/vas/gemfire/application_code_images.rb', line 63 def pending_application_code application_codes = [] Util::LinkUtils.get_link_hrefs(client.get(location), "pending-application-code").each { |application_code_location| application_codes << ApplicationCode.new(application_code_location, client)} application_codes end |
#to_s ⇒ Object
:nodoc:
70 71 72 |
# File 'lib/vas/gemfire/application_code_images.rb', line 70 def to_s #:nodoc: "#<#{self.class} name='#@name' version='#@version'>" end |