class Fog::Introspection::OpenStack::RulesCollection
Public Instance Methods
all(_options = {})
click to toggle source
# File lib/fog/introspection/openstack/models/rules_collection.rb, line 10 def all(_options = {}) load_response(service.list_rules, 'rules') end
destroy(uuid)
click to toggle source
# File lib/fog/introspection/openstack/models/rules_collection.rb, line 21 def destroy(uuid) rules = get(uuid) rules.destroy end
destroy_all()
click to toggle source
# File lib/fog/introspection/openstack/models/rules_collection.rb, line 26 def destroy_all service.delete_rules_all end
get(uuid)
click to toggle source
# File lib/fog/introspection/openstack/models/rules_collection.rb, line 14 def get(uuid) data = service.get_rules(uuid).body new(data) rescue Fog::Introspection::OpenStack::NotFound nil end