class SDM::Role
A Role
is a collection of access grants, and typically corresponds to a team, Active Directory OU, or other organizational unit. Users are granted access to resources by assigning them to roles.
Attributes
composite[RW]
True if the Role
is a composite role.
id[RW]
Unique identifier of the Role
.
name[RW]
Unique human-readable name of the Role
.
Public Class Methods
new( id:nil \ , name:nil \ , composite:nil \ , tags:nil \ )
click to toggle source
# File lib/models/porcelain.rb, line 5716 def initialize( id:nil \ , name:nil \ , composite:nil \ , tags:nil \ ) if id != nil @id = id end if name != nil @name = name end if composite != nil @composite = composite end if tags != nil @tags = tags end end
Public Instance Methods
to_json(options={})
click to toggle source
# File lib/models/porcelain.rb, line 5738 def to_json(options={}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix('@')] = self.instance_variable_get var end hash.to_json end