Class: Conjur::Policy::Types::Role

Inherits:
Record show all
Includes:
ActsAsCompoundId, ActsAsRole
Defined in:
lib/conjur/policy/types/records.rb

Instance Method Summary collapse

Methods included from ActsAsCompoundId

#==, #initialize, #to_s

Methods included from ActsAsRole

#role?

Methods inherited from Record

#resource?, #role?

Methods inherited from Base

#custom_attribute_names, #id_attribute, inherited, #referenced_records, register_yaml_type, #resource?, #role?, short_name

Methods included from InheritableAttribute

inherit_for, #inheritable_attr

Methods included from TypeChecking

#expect_array, #expect_boolean, #expect_hash, #expect_integer, #expect_layer, #expect_member, #expect_permission, #expect_record, #expect_resource, #expect_role, #expect_string, #expect_type, #test_resource, #test_role

Methods included from AttributeDefinition

#attribute, #define_field, #define_plural_field, #field?, #yaml_field?, #yaml_field_type

Instance Method Details

#immutable_attribute_namesObject



156
157
158
# File 'lib/conjur/policy/types/records.rb', line 156

def immutable_attribute_names
  []
end

#role_idObject



153
# File 'lib/conjur/policy/types/records.rb', line 153

def role_id; id; end

#role_kindObject



154
# File 'lib/conjur/policy/types/records.rb', line 154

def role_kind; kind; end

#roleid(default_account = nil) ⇒ Object



148
149
150
151
# File 'lib/conjur/policy/types/records.rb', line 148

def roleid  = nil
  raise "account is required" unless  || 
  [  || , kind, id ].join(":")
end