Class: Lawkeeper::Policy::Scope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, scope) ⇒ Scope

Returns a new instance of Scope.



20
21
22
23
# File 'lib/lawkeeper.rb', line 20

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

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



18
19
20
# File 'lib/lawkeeper.rb', line 18

def scope
  @scope
end

#userObject (readonly)

Returns the value of attribute user.



18
19
20
# File 'lib/lawkeeper.rb', line 18

def user
  @user
end

Instance Method Details

#resolveObject



25
26
27
# File 'lib/lawkeeper.rb', line 25

def resolve
  scope
end