Class: Fog::Vcloud::Terremark::Ecloud::Network
- Defined in:
- lib/fog/vcloud/terremark/ecloud/models/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
#collection, #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, #identity, #identity=, #merge_attributes, #new_record?, #requires
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#ips ⇒ Object
22 23 24 25 26 27 |
# File 'lib/fog/vcloud/terremark/ecloud/models/network.rb', line 22 def ips load_unless_loaded! @ips ||= Fog::Vcloud::Terremark::Ecloud::Ips. new( :connection => connection, :href => links.detect { |link| link[:name] == "IP Addresses" }[:href] ) end |
#reload ⇒ Object
41 42 43 44 |
# File 'lib/fog/vcloud/terremark/ecloud/models/network.rb', line 41 def reload super merge_attributes(extension_data.body) end |
#rnat=(new_rnat) ⇒ Object
29 30 31 32 |
# File 'lib/fog/vcloud/terremark/ecloud/models/network.rb', line 29 def rnat=(new_rnat) @rnat = new_rnat @changed = true end |
#save ⇒ Object
34 35 36 37 38 39 |
# File 'lib/fog/vcloud/terremark/ecloud/models/network.rb', line 34 def save if @changed connection.configure_network( extension_href, _compose_network_data ) end true end |