Class: Fog::Compute::Brightbox::CloudIp
- Defined in:
- lib/fog/brightbox/models/compute/cloud_ip.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#initialize, #inspect, #reload, #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
#destroy ⇒ Object
40 41 42 43 |
# File 'lib/fog/brightbox/models/compute/cloud_ip.rb', line 40 def destroy requires :identity connection.destroy_cloud_ip(identity) end |
#map(interface_to_map) ⇒ Object
26 27 28 29 |
# File 'lib/fog/brightbox/models/compute/cloud_ip.rb', line 26 def map(interface_to_map) requires :identity connection.map_cloud_ip(identity, :interface => interface_to_map) end |
#mapped? ⇒ Boolean
31 32 33 |
# File 'lib/fog/brightbox/models/compute/cloud_ip.rb', line 31 def mapped? status == "mapped" end |
#unmap ⇒ Object
35 36 37 38 |
# File 'lib/fog/brightbox/models/compute/cloud_ip.rb', line 35 def unmap requires :identity connection.unmap_cloud_ip(identity) end |