Class: Fog::Introspection::OpenStack::Rules
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save, #update
Instance Method Details
#create ⇒ Object
14
15
16
17
18
19
|
# File 'lib/fog/introspection/openstack/models/rules.rb', line 14
def create
requires :actions, :conditions
attributes[:description] = description || ""
merge_attributes(service.create_rules(attributes).body)
self
end
|
#destroy ⇒ Object
21
22
23
24
25
|
# File 'lib/fog/introspection/openstack/models/rules.rb', line 21
def destroy
requires :uuid
service.delete_rules(uuid)
true
end
|