Class: Logux::Policy

Inherits:
Object
  • Object
show all
Defined in:
lib/logux/policy.rb

Defined Under Namespace

Classes: UnauthorizedError

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = meta
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



7
8
9
# File 'lib/logux/policy.rb', line 7

def action
  @action
end

#metaObject (readonly)

Returns the value of attribute meta.



7
8
9
# File 'lib/logux/policy.rb', line 7

def meta
  @meta
end