Class: Proxmox::Storage::Content
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Content
constructor
A new instance of Content.
- #rest_prefix ⇒ Object
- #to_s ⇒ Object
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
#initialize ⇒ Content
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_prefix ⇒ Object
672 673 674 |
# File 'lib/pve/proxmox.rb', line 672 def rest_prefix @rest_prefix ||= "/nodes/#{@node.node}/storage/#{@storage}/content/#{@content}" end |
#to_s ⇒ Object
677 |
# File 'lib/pve/proxmox.rb', line 677 def to_s() "#{node.node} #{volid}" end |