Class: Logux::Policy
- Inherits:
-
Object
- Object
- Logux::Policy
- Defined in:
- lib/logux/policy.rb
Defined Under Namespace
Classes: UnauthorizedError
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(action:, meta:) ⇒ Policy
constructor
A new instance of Policy.
Constructor Details
#initialize(action:, meta:) ⇒ Policy
Returns a new instance of Policy.
9 10 11 12 |
# File 'lib/logux/policy.rb', line 9 def initialize(action:, meta:) @action = action @meta = end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
7 8 9 |
# File 'lib/logux/policy.rb', line 7 def action @action end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
7 8 9 |
# File 'lib/logux/policy.rb', line 7 def @meta end |