Sha256: 8a9070daf6d1d351716dfe909a35be8cca473c1fcd524c57535077492e8be333
Contents?: true
Size: 614 Bytes
Versions: 39
Compression:
Stored size: 614 Bytes
Contents
require 'fog/openstack/models/collection' require 'fog/compute/openstack/models/aggregate' module Fog module Compute class OpenStack class Aggregates < Fog::OpenStack::Collection model Fog::Compute::OpenStack::Aggregate def all(options = {}) load_response(service.list_aggregates(options), 'aggregates') end def find_by_id(id) new(service.get_aggregate(id).body['aggregate']) end alias get find_by_id def destroy(id) aggregate = find_by_id(id) aggregate.destroy end end end end end
Version data entries
39 entries across 37 versions & 3 rubygems