Sha256: f97fa5771be1de82fe8b68461a7644fd694e45a6422d516582385889448e3066
Contents?: true
Size: 531 Bytes
Versions: 23
Compression:
Stored size: 531 Bytes
Contents
require 'fog/core/collection' require 'fog/openstack/models/metering/resource' module Fog module Metering class OpenStack class Resources < Fog::Collection model Fog::Metering::OpenStack::Resource def all(detailed=true) load(service.list_resources.body) end def find_by_id(resource_id) resource = service.get_resource(resource_id).body new(resource) rescue Fog::Metering::OpenStack::NotFound nil end end end end end
Version data entries
23 entries across 23 versions & 4 rubygems