Class: CedarPolicy::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/cedar_policy/context.rb

Overview

:nodoc:

Instance Method Summary collapse

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_hashObject



10
11
12
# File 'lib/cedar_policy/context.rb', line 10

def to_hash
  CedarPolicy.deep_serialize(@context)
end