Class: Fog::Compute::Proxmox::Containers

Inherits:
Servers show all
Defined in:
lib/fog/compute/proxmox/models/containers.rb

Overview

Containers Collection

Instance Attribute Summary

Attributes inherited from Proxmox::Collection

#response

Instance Method Summary collapse

Methods inherited from Servers

#all, #get, #id_valid?, #next_id

Methods inherited from Proxmox::Collection

#all, #clear_ignored_attributes, #create, #destroy, #find_by_id, #get, #load_response, #not_implemented, #read, #summary

Constructor Details

#initialize(attributes = {}) ⇒ Containers

Returns a new instance of Containers.


29
30
31
# File 'lib/fog/compute/proxmox/models/containers.rb', line 29

def initialize(attributes = {})
  super(attributes)
end

Instance Method Details

#new(attributes = {}) ⇒ Object


37
38
39
# File 'lib/fog/compute/proxmox/models/containers.rb', line 37

def new(attributes = {})
  super({ node: node, type: type }.merge(attributes))
end

#typeObject


33
34
35
# File 'lib/fog/compute/proxmox/models/containers.rb', line 33

def type
  'lxc'
end