Sha256: 9f99716a390836f2c66598e6afaa91b45bd5674678aebb61f861b9d8bbe60e8e
Contents?: true
Size: 500 Bytes
Versions: 43
Compression:
Stored size: 500 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(service.list_locations.body['locations']) end def get(location_id) begin new(service.get_location(location_id).body) rescue Fog::Compute::IBM::NotFound nil end end end end end end
Version data entries
43 entries across 41 versions & 6 rubygems