Class: Proxmox::Storage::Content

Inherits:
Base
  • Object
show all
Defined in:
lib/pve/proxmox.rb

Instance Attribute Summary

Attributes inherited from Base

#sid

Instance Method Summary collapse

Methods inherited from Base

__new__, fetch, #method_missing, #refresh!, #respond_to?

Methods included from RestConnection

#bench, #rest_del, #rest_get, #rest_post, #rest_put

Constructor Details

#initializeContent

Returns a new instance of Content.



676
# File 'lib/pve/proxmox.rb', line 676

def initialize() rest_prefix end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Proxmox::Base

Instance Method Details

#rest_prefixObject



672
673
674
# File 'lib/pve/proxmox.rb', line 672

def rest_prefix
  @rest_prefix ||= "/nodes/#{@node.node}/storage/#{@storage}/content/#{@content}"
end

#to_sObject



677
# File 'lib/pve/proxmox.rb', line 677

def to_s() "#{node.node} #{volid}" end