Class: Fog::Compute::Ecloud::Ip
- Inherits:
-
Ecloud::Model
- Object
- Model
- Ecloud::Model
- Fog::Compute::Ecloud::Ip
- Defined in:
- lib/fog/compute/models/ecloud/ip.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
#reload ⇒ Object
28 29 30 31 32 |
# File 'lib/fog/compute/models/ecloud/ip.rb', line 28 def reload super @changed = false self end |
#rnat=(new_rnat) ⇒ Object
16 17 18 19 |
# File 'lib/fog/compute/models/ecloud/ip.rb', line 16 def rnat=(new_rnat) attributes[:rnat] = new_rnat @changed = true end |
#save ⇒ Object
21 22 23 24 25 26 |
# File 'lib/fog/compute/models/ecloud/ip.rb', line 21 def save if @changed connection.configure_network_ip( href, _compose_network_ip_data ) end true end |