Method: Gemfire::Gemfire#initialize
- Defined in:
- lib/vas/gemfire/gemfire.rb
#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 |