Class: Fog::Identity::OpenStack::V2::Roles

Inherits:
OpenStack::Collection show all
Defined in:
lib/fog/openstack/models/identity_v2/roles.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

#destroy, #load_response, #summary

Instance Method Details

#all(options = {}) ⇒ Object



11
12
13
# File 'lib/fog/openstack/models/identity_v2/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/models/identity_v2/roles.rb', line 15

def get(id)
  service.get_role(id)
end