Class: Fog::Vcloud::Compute::Network
- Defined in:
- lib/fog/compute/models/vcloud/network.rb
Instance Attribute Summary
Attributes inherited from Model
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
Methods inherited from Model
#initialize, #inspect, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#ips ⇒ Object
23 24 25 26 27 |
# File 'lib/fog/compute/models/vcloud/network.rb', line 23 def ips load_unless_loaded! Fog::Vcloud::Compute::Ips.new( :connection => connection, :href => links.detect { |link| link[:name] == "IP Addresses" }[:href] ) end |
#reload ⇒ Object
36 37 38 39 40 |
# File 'lib/fog/compute/models/vcloud/network.rb', line 36 def reload super merge_attributes(extension_data.body) self end |
#save ⇒ Object
29 30 31 32 33 34 |
# File 'lib/fog/compute/models/vcloud/network.rb', line 29 def save if @changed connection.configure_network( extension_href, _compose_network_data ) end true end |