Class: Fog::Proxmox::Model

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

Overview

class Model proxmox

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Model

Initialize a record


36
37
38
39
40
# File 'lib/fog/proxmox/models/model.rb', line 36

def initialize(attributes)
  # Old 'connection' is renamed as service and should be used instead
  prepare_service_value(attributes)
  super
end

Instance Method Details

#createObject

Creates a record


48
49
50
# File 'lib/fog/proxmox/models/model.rb', line 48

def create
  # raise Fog::Proxmox::Errors::InterfaceNotImplemented
end

#destroyObject

Destroys a record


53
54
55
# File 'lib/fog/proxmox/models/model.rb', line 53

def destroy
  # raise Fog::Proxmox::Errors::InterfaceNotImplemented
end

#inspectObject


31
32
33
# File 'lib/fog/proxmox/models/model.rb', line 31

def inspect
  Fog::Formatador.format(self, include_nested: false)
end

#to_sObject


27
28
29
# File 'lib/fog/proxmox/models/model.rb', line 27

def to_s
  identity.to_s
end

#updateObject

Updates a record


43
44
45
# File 'lib/fog/proxmox/models/model.rb', line 43

def update
  # raise Fog::Proxmox::Errors::InterfaceNotImplemented
end