Module: Conjur::DSL2::Types::ActsAsRole
- Included in:
- Ruby::Policy, Group, Host, Layer, ManagedRole, Policy, Role, User
- Defined in:
- lib/conjur/dsl2/types/records.rb
Instance Method Summary collapse
Instance Method Details
#role? ⇒ Boolean
73 74 75 |
# File 'lib/conjur/dsl2/types/records.rb', line 73 def role? true end |
#role_id ⇒ Object
81 82 83 |
# File 'lib/conjur/dsl2/types/records.rb', line 81 def role_id id end |
#role_kind ⇒ Object
77 78 79 |
# File 'lib/conjur/dsl2/types/records.rb', line 77 def role_kind self.class.name.split("::")[-1].underscore end |
#roleid(default_account = nil) ⇒ Object
69 70 71 |
# File 'lib/conjur/dsl2/types/records.rb', line 69 def roleid default_account = nil [ account || default_account, role_kind, id ].join(":") end |