Class: TcServer::Templates
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- TcServer::Templates
- Defined in:
- lib/vas/tc_server/templates.rb
Overview
Used to enumerate, create, and delete tc Server templates.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(template_image) ⇒ Template
Creates a new template.
-
#initialize(location, client) ⇒ Templates
constructor
A new instance of Templates.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
Instance Method Details
#create(template_image) ⇒ Template
Creates a new template
32 33 34 |
# File 'lib/vas/tc_server/templates.rb', line 32 def create(template_image) super({ :image => template_image.location }, 'template') end |