Sha256: f17bffe21a15e8c0b669b13f8bb781153e7306d12851acd342d1ed078048bd5e
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
require 'rackspace-fog/core/collection' require 'rackspace-fog/brightbox/models/compute/cloud_ip' module Fog module Compute class Brightbox class CloudIps < Fog::Collection model Fog::Compute::Brightbox::CloudIp def all data = connection.list_cloud_ips load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = connection.get_cloud_ip(identifier) new(data) rescue Excon::Errors::NotFound nil end def allocate data = connection.create_cloud_ip new(data) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rackspace-fog-1.4.2 | lib/rackspace-fog/brightbox/models/compute/cloud_ips.rb |