Class: Fog::Brightbox::Compute::CloudIps
- Inherits:
-
Collection
- Object
- Collection
- Fog::Brightbox::Compute::CloudIps
- Defined in:
- lib/fog/brightbox/models/compute/cloud_ips.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/fog/brightbox/models/compute/cloud_ips.rb', line 9 def all data = service.list_cloud_ips load(data) end |
#allocate ⇒ Object
22 23 24 25 |
# File 'lib/fog/brightbox/models/compute/cloud_ips.rb', line 22 def allocate data = service.create_cloud_ip new(data) end |
#get(identifier) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/fog/brightbox/models/compute/cloud_ips.rb', line 14 def get(identifier) return nil if identifier.nil? || identifier == "" data = service.get_cloud_ip(identifier) new(data) rescue Excon::Errors::NotFound nil end |