Class: CedarPolicy::Context
- Inherits:
-
Object
- Object
- CedarPolicy::Context
- Defined in:
- lib/cedar_policy/context.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(context = {}) ⇒ Context
constructor
A new instance of Context.
- #to_hash ⇒ Object
Constructor Details
#initialize(context = {}) ⇒ Context
6 7 8 |
# File 'lib/cedar_policy/context.rb', line 6 def initialize(context = {}) @context = context end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 |
# File 'lib/cedar_policy/context.rb', line 10 def to_hash CedarPolicy.deep_serialize(@context) end |