Sha256: 7ec506a7d203ba2e1731d5a80d0c0fb4d5f8a80c5b705388511ee19522f5614a
Contents?: true
Size: 503 Bytes
Versions: 65
Compression:
Stored size: 503 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
65 entries across 65 versions & 6 rubygems