Sha256: e49a5946557bf5e94babd4bd2d0060a9195a02caafc00ee866b2e68d9afd26c4
Contents?: true
Size: 588 Bytes
Versions: 17
Compression:
Stored size: 588 Bytes
Contents
require 'fog/core/collection' require 'fog/ibm/models/compute/address' module Fog module Compute class IBM class Addresses < Fog::Collection model Fog::Compute::IBM::Address def all load(connection.list_addresses.body['addresses']) end def get(address_id) begin address = connection.list_addresses.body new(address['addresses'].find{|address| address['id'] == address_id.to_s }) rescue Fog::Compute::IBM::NotFound nil end end end end end end
Version data entries
17 entries across 17 versions & 9 rubygems