Class: Conjur::Policy::Types::Entitlements

Inherits:
YAMLList show all
Includes:
Grants, Permissions, Tagless
Defined in:
lib/conjur/policy/types/policy.rb

Overview

Entitlements will allow creation of any record, as well as declaration of permit, deny, grant and revoke.

Instance Method Summary collapse

Methods included from Permissions

#give, #permit, #retire

Methods included from CustomStatement

#custom_statement

Methods included from Grants

#grant, #revoke

Methods included from Tagless

#tag

Methods inherited from YAMLList

#encode_with, #tag

Instance Method Details

#policy(id = nil, &block) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/conjur/policy/types/policy.rb', line 74

def policy id=nil, &block
  policy = Policy.new
  policy.id(id) unless id.nil?
  push policy

  do_scope policy, &block
end