class Fog::Identity::OpenStack::V3::Domain
Public Class Methods
use_cache(cache)
click to toggle source
# File lib/fog/openstack/models/identity_v3/domain.rb, line 42 def self.use_cache(cache) @@cache = cache end
Public Instance Methods
create()
click to toggle source
# File lib/fog/openstack/models/identity_v3/domain.rb, line 34 def create @@cache.clear if @@cache requires :name merge_attributes( service.create_domain(attributes).body['domain']) self end
destroy()
click to toggle source
# File lib/fog/openstack/models/identity_v3/domain.rb, line 19 def destroy @@cache.clear if @@cache requires :id service.delete_domain(self.id) true end
to_s()
click to toggle source
# File lib/fog/openstack/models/identity_v3/domain.rb, line 15 def to_s self.name end
update(attr = nil)
click to toggle source
# File lib/fog/openstack/models/identity_v3/domain.rb, line 26 def update(attr = nil) @@cache.clear if @@cache requires :id, :name merge_attributes( service.update_domain(self.id, attr || attributes).body['domain']) self end