Class: Fog::Compute::Ecloud::Network
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::Network
- Defined in:
- lib/fog/compute/models/ecloud/network.rb
Instance Attribute Summary
Attributes inherited from Ecloud::Model
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Ecloud::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
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#ips ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/fog/compute/models/ecloud/network.rb', line 24 def ips load_unless_loaded! connection.ips.new Fog::Compute::Ecloud::Ips.new( :connection => connection, :href => links.detect { |link| link[:name] == "IP Addresses" }[:href] ) end |
#reload ⇒ Object
45 46 47 48 49 |
# File 'lib/fog/compute/models/ecloud/network.rb', line 45 def reload super merge_attributes(extension_data.body) self end |
#rnat=(new_rnat) ⇒ Object
33 34 35 36 |
# File 'lib/fog/compute/models/ecloud/network.rb', line 33 def rnat=(new_rnat) attributes[:rnat] = new_rnat @changed = true end |
#save ⇒ Object
38 39 40 41 42 43 |
# File 'lib/fog/compute/models/ecloud/network.rb', line 38 def save if @changed connection.configure_network( extension_href, _compose_network_data ) end true end |