Class: Fog::Vcloud::Compute::Ip

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

Instance Attribute Summary

Attributes inherited from Model

#loaded

Instance Method Summary collapse

Methods inherited from Model

has_up, #link_up, #load_unless_loaded!

Instance Method Details

#reloadObject



21
22
23
24
25
# File 'lib/fog/vcloud/models/compute/ip.rb', line 21

def reload
  super
  @changed = false
  self
end

#saveObject



14
15
16
17
18
19
# File 'lib/fog/vcloud/models/compute/ip.rb', line 14

def save
  if @changed
    service.configure_network_ip( href, _compose_network_ip_data )
  end
  true
end