Class: Cerbos::Input::Attributes
- Inherits:
-
Object
- Object
- Cerbos::Input::Attributes
- Defined in:
- lib/cerbos/input/attributes.rb
Overview
Attributes for a principal or resource.
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ Attributes
constructor
Specify a principal's or resource's attributes.
-
#to_hash ⇒ Hash{Symbol => String, Numeric, Boolean, Array, Hash, nil}
(also: #to_h)
The principal's or resource's attributes.
Constructor Details
#initialize(**attributes) ⇒ Attributes
Specify a principal's or resource's attributes.
10 11 12 |
# File 'lib/cerbos/input/attributes.rb', line 10 def initialize(**attributes) @attributes = attributes end |
Instance Method Details
#to_hash ⇒ Hash{Symbol => String, Numeric, Boolean, Array, Hash, nil} Also known as: to_h
The principal's or resource's attributes.
17 18 19 |
# File 'lib/cerbos/input/attributes.rb', line 17 def to_hash @attributes end |