Class: Conjur::Policy::Ruby::Entitlements

Inherits:
YAMLList show all
Includes:
Grants, Permissions, RecordFactory, Tagless
Defined in:
lib/conjur/policy/ruby/loader.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 RecordFactory

#handle_object

Methods included from RecordReferenceFactory

#handle_object, #method_missing

Methods included from RecordLoader

#respond_to_missing?

Methods included from Tagless

#tag

Methods inherited from YAMLList

#encode_with, #tag

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Conjur::Policy::Ruby::RecordReferenceFactory

Instance Method Details

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



123
124
125
126
127
128
129
# File 'lib/conjur/policy/ruby/loader.rb', line 123

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

  do_scope policy, &block
end