Sha256: ae98fcd79a97bd329c8b20f9d835888411adbdeb6fa16688c4b55c9e1e460501
Contents?: true
Size: 559 Bytes
Versions: 34
Compression:
Stored size: 559 Bytes
Contents
require 'fog/openstack/models/collection' require 'fog/metric/openstack/models/resource' module Fog module Metric class OpenStack class Resources < Fog::OpenStack::Collection model Fog::Metric::OpenStack::Resource def all(options = {}) load_response(service.list_resources(options)) end def find_by_id(resource_id) resource = service.get_resource(resource_id).body new(resource) rescue Fog::Metric::OpenStack::NotFound nil end end end end end
Version data entries
34 entries across 32 versions & 3 rubygems