Class: OpenStack::Keystone::Admin::Base
- Inherits:
-
Common
show all
- Defined in:
- lib/open_stack/keystone/admin/base.rb
Class Method Summary
collapse
Methods inherited from Common
collection_path, custom_method_collection_url, element_path
Methods inherited from Base
headers
#load
Class Method Details
.site ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/open_stack/keystone/admin/base.rb', line 24
def self.site
if self == OpenStack::Keystone::Admin::Base
Thread.current[:open_stack_keystone_admin_site]
else
super
end
end
|
.site=(site) ⇒ Object
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/open_stack/keystone/admin/base.rb', line 32
def self.site=(site)
super(site)
Thread.current[:open_stack_keystone_admin_site] = @site
default = @site.path
default << '/' unless default[-1..-1] == '/'
self.prefix = default
@site
end
|