Class: Fog::OpenStack::Identity::V2::Roles
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::OpenStack::Identity::V2::Roles
show all
- Defined in:
- lib/fog/openstack/identity/v2/models/roles.rb
Instance Attribute Summary
Attributes inherited from Collection
#response
Instance Method Summary
collapse
Methods inherited from Collection
#destroy, #find_by_id, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
11
12
13
|
# File 'lib/fog/openstack/identity/v2/models/roles.rb', line 11
def all(options = {})
load_response(service.list_roles(options), 'roles')
end
|
#get(id) ⇒ Object
15
16
17
|
# File 'lib/fog/openstack/identity/v2/models/roles.rb', line 15
def get(id)
service.get_role(id)
end
|