Class: Fog::Compute::CloudSigma::VLAN

Inherits:
Fog::CloudSigma::CloudsigmaModel show all
Defined in:
lib/fog/cloudsigma/models/vlan.rb

Instance Method Summary collapse

Methods inherited from Fog::CloudSigma::CloudsigmaModel

model_attribute, model_attribute_array

Instance Method Details

#updateObject Also known as: save



15
16
17
18
19
20
21
22
23
# File 'lib/fog/cloudsigma/models/vlan.rb', line 15

def update
  requires :identity
  data = attributes

  response = service.update_vlan(identity, data)

  new_attributes = response.body
  merge_attributes(new_attributes)
end