Class: Fog::Compute::Ecloud::User
Instance Attribute Summary
#loaded
Instance Method Summary
collapse
#load_unless_loaded!, #reload
Instance Method Details
#api_keys ⇒ Object
25
26
27
|
# File 'lib/fog/compute/ecloud/models/user.rb', line 25
def api_keys
@api_keys = Fog::Compute::Ecloud::ApiKeys.new(:service => service, :href => "#{service.base_path}/admin/apiKeys/users/#{id}")
end
|
#id ⇒ Object
29
30
31
|
# File 'lib/fog/compute/ecloud/models/user.rb', line 29
def id
href.scan(/\d+/)[0]
end
|
#roles ⇒ Object
21
22
23
|
# File 'lib/fog/compute/ecloud/models/user.rb', line 21
def roles
@roles = Fog::Compute::Ecloud::Roles.new(:service => service, :href => "#{service.base_path}/admin/roles/users/#{id}")
end
|