Class: OpenStack::Keystone::Admin::Role

Inherits:
Base show all
Defined in:
lib/open_stack/keystone/admin/role.rb

Overview

An OpenStack Role (“admin view”)

Attributes

  • name - The name of this role

Class Method Summary collapse

Methods inherited from Base

site, site=

Methods inherited from Common

collection_path, custom_method_collection_url, element_path

Methods inherited from Base

headers

Methods inherited from ActiveResource::Base

#load

Class Method Details

.find_by_name(name) ⇒ Object

List Roles with a given name



39
40
41
# File 'lib/open_stack/keystone/admin/role.rb', line 39

def self.find_by_name(name)
  all.detect { |role| role.name == name }
end