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

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

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

#destroy, #find_by_id, #load_response, #summary

Instance Method Details

#all(options = {}) ⇒ Object


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

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