Sha256: e0f9ce533f45add12b28b0097187c5247581d4c4fb78c9c58e3f7dab273cfb08
Contents?: true
Size: 1.21 KB
Versions: 7
Compression:
Stored size: 1.21 KB
Contents
# This file is part of the OpenStack-ActiveResource # # Copyright (C) 2012 Unidata S.p.A. (Davide Guerri - d.guerri@unidata.it) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. module OpenStack module Keystone module Admin # An OpenStack Role ("admin view") # # ==== Attributes # * +name+ - The name of this role class Role < Base self.element_name = "OS-KSADM/role" schema do attribute :name, :string end # List Roles with a given name def self.find_by_name(name) all.detect { |role| role.name == name } end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems