Class: TcServer::TcServer
- Inherits:
-
Object
- Object
- TcServer::TcServer
- Defined in:
- lib/vas/tc_server/tc_server.rb
Overview
The entry point to the API for administering tc Server
Instance Attribute Summary collapse
-
#groups ⇒ Groups
readonly
The tc Server groups.
-
#installation_images ⇒ InstallationImages
readonly
The tc Server installation images.
-
#nodes ⇒ Nodes
readonly
The tc Server Nodes.
-
#revision_images ⇒ RevisionImages
readonly
The tc Server revision images.
-
#template_images ⇒ TemplateImages
readonly
The tc Server template images.
Instance Method Summary collapse
-
#initialize(location, client) ⇒ TcServer
constructor
A new instance of TcServer.
Constructor Details
#initialize(location, client) ⇒ TcServer
Returns a new instance of TcServer.
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/vas/tc_server/tc_server.rb', line 39 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) @revision_images = RevisionImages.new(Util::LinkUtils.get_link_href(json, 'revision-images'), client) @template_images = TemplateImages.new(Util::LinkUtils.get_link_href(json, 'template-images'), client) end |
Instance Attribute Details
#groups ⇒ Groups (readonly)
Returns the tc Server groups.
24 25 26 |
# File 'lib/vas/tc_server/tc_server.rb', line 24 def groups @groups end |
#installation_images ⇒ InstallationImages (readonly)
Returns the tc Server installation images.
27 28 29 |
# File 'lib/vas/tc_server/tc_server.rb', line 27 def installation_images @installation_images end |
#nodes ⇒ Nodes (readonly)
Returns the tc Server Nodes.
30 31 32 |
# File 'lib/vas/tc_server/tc_server.rb', line 30 def nodes @nodes end |
#revision_images ⇒ RevisionImages (readonly)
Returns the tc Server revision images.
33 34 35 |
# File 'lib/vas/tc_server/tc_server.rb', line 33 def revision_images @revision_images end |
#template_images ⇒ TemplateImages (readonly)
Returns the tc Server template images.
36 37 38 |
# File 'lib/vas/tc_server/tc_server.rb', line 36 def template_images @template_images end |