Class: Fog::Proxmox::Compute::Storage

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/compute/proxmox/models/storage.rb

Overview

class Storage model

Instance Method Summary collapse

Constructor Details

#initialize(new_attributes = {}) ⇒ Storage

Returns a new instance of Storage.



47
48
49
50
51
52
53
54
# File 'lib/fog/compute/proxmox/models/storage.rb', line 47

def initialize(new_attributes = {})
  prepare_service_value(new_attributes)
  Fog::Proxmox::Attributes.set_attr_and_sym('node_id', attributes, new_attributes)
  Fog::Proxmox::Attributes.set_attr_and_sym('storage', attributes, new_attributes)
  requires :node_id, :storage
  initialize_volumes
  super(new_attributes)
end