Class: TcServer::Group

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

Overview

A tc 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
37
# File 'lib/vas/tc_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:



40
41
42
# File 'lib/vas/tc_server/groups.rb', line 40

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