Class: Tiun::Policy::Scope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, scope) ⇒ Scope



29
30
31
32
# File 'lib/tiun/policy.rb', line 29

def initialize(user, scope)
   @user = user
   @scope = scope
end

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



27
28
29
# File 'lib/tiun/policy.rb', line 27

def scope
  @scope
end

#userObject (readonly)

Returns the value of attribute user.



27
28
29
# File 'lib/tiun/policy.rb', line 27

def user
  @user
end

Instance Method Details

#resolveObject



34
35
36
# File 'lib/tiun/policy.rb', line 34

def resolve
   scope
end