Class: WebServer::Group

Inherits:
Shared::MutableGroup show all
Defined in:
lib/vas/web_server/groups.rb

Overview

A Web Server group

Instance Attribute Summary

Attributes inherited from Shared::Group

#name

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableGroup

#update

Methods inherited from Shared::Group

#installations, #nodes, #reload, #to_s

Methods included from Shared::Deletable

#delete

Constructor Details

#initialize(location, client) ⇒ Group

Returns a new instance of Group.



33
34
35
36
# File 'lib/vas/web_server/groups.rb', line 33

def initialize(location, client)
  super(location, client, Node, Installations)
  @instances_location = Util::LinkUtils.get_link_href(details, 'group-instances')
end

Instance Method Details

#instancesInstances

Returns the group’s instances.

Returns:



39
40
41
# File 'lib/vas/web_server/groups.rb', line 39

def instances
  @instances ||= Instances.new(@instances_location, client)
end