Sha256: dca685153b98c7a551ed998051ce771920f6b9ffac5a6627f7bfecc2a8622299
Contents?: true
Size: 509 Bytes
Versions: 17
Compression:
Stored size: 509 Bytes
Contents
require 'fog/core/collection' require 'fog/ibm/models/compute/location' module Fog module Compute class IBM class Locations < Fog::Collection model Fog::Compute::IBM::Location def all load(connection.list_locations.body['locations']) end def get(location_id) begin new(connection.get_location(location_id).body) rescue Fog::Compute::IBM::NotFound nil end end end end end end
Version data entries
17 entries across 17 versions & 9 rubygems