Class: Conjur::RoleGrant

Inherits:
Object
  • Object
show all
Defined in:
lib/conjur/role_grant.rb

Overview

A RoleGrant instance represents the membership of a role in some unspecified role. RoleGrants are returned by Conjur::Role#members and represent members of the role on which the method was invoked.

Examples:

alice.members.map{|grant| grant.member}.include? admin_role # => true
admin_role.members.map{|grant| grant.member}.include? alice # => true

Instance Attribute Summary collapse

Instance Attribute Details

#admin_optionBoolean (readonly)

When true, the role #member is allowed to give this grant to other roles

Returns:

  • (Boolean)

    whether the role can grant the role to others



44
45
46
# File 'lib/conjur/role_grant.rb', line 44

def admin_option
  @admin_option
end

#grantorConjur::Role (readonly)

The role that created this grant.

Returns:



39
40
41
# File 'lib/conjur/role_grant.rb', line 39

def grantor
  @grantor
end

#memberConjur::Role (readonly)

The member role in the relationship

Returns:



34
35
36
# File 'lib/conjur/role_grant.rb', line 34

def member
  @member
end