Class: Gemfire::Gemfire
- Inherits:
-
Object
- Object
- Gemfire::Gemfire
- Defined in:
- lib/vas/gemfire/gemfire.rb
Overview
The entry point to the API for administering GemFire
Instance Attribute Summary collapse
-
#application_code_images ⇒ ApplicationCodeImages
readonly
The GemFire application code images.
-
#groups ⇒ Groups
readonly
The GemFire groups.
-
#installation_images ⇒ InstallationImages
readonly
The GemFire installation images.
-
#nodes ⇒ Nodes
readonly
The GemFire nodes.
Instance Method Summary collapse
-
#initialize(location, client) ⇒ Gemfire
constructor
A new instance of Gemfire.
Constructor Details
#initialize(location, client) ⇒ Gemfire
Returns a new instance of Gemfire.
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/vas/gemfire/gemfire.rb', line 36 def initialize(location, client) json = client.get(location) @groups = Groups.new(Util::LinkUtils.get_link_href(json, 'groups'), client) @installation_images = InstallationImages.new(Util::LinkUtils.get_link_href(json, 'installation-images'), client) @nodes = Nodes.new(Util::LinkUtils.get_link_href(json, 'nodes'), client) @application_code_images = ApplicationCodeImages.new(Util::LinkUtils.get_link_href(json, 'application-code-images'), client) end |
Instance Attribute Details
#application_code_images ⇒ ApplicationCodeImages (readonly)
Returns the GemFire application code images.
33 34 35 |
# File 'lib/vas/gemfire/gemfire.rb', line 33 def application_code_images @application_code_images end |
#groups ⇒ Groups (readonly)
Returns the GemFire groups.
24 25 26 |
# File 'lib/vas/gemfire/gemfire.rb', line 24 def groups @groups end |
#installation_images ⇒ InstallationImages (readonly)
Returns the GemFire installation images.
27 28 29 |
# File 'lib/vas/gemfire/gemfire.rb', line 27 def installation_images @installation_images end |
#nodes ⇒ Nodes (readonly)
Returns the GemFire nodes.
30 31 32 |
# File 'lib/vas/gemfire/gemfire.rb', line 30 def nodes @nodes end |