Class: Lawkeeper::Policy

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

Defined Under Namespace

Classes: Scope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, record) ⇒ Policy



30
31
32
33
# File 'lib/lawkeeper.rb', line 30

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

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



15
16
17
# File 'lib/lawkeeper.rb', line 15

def record
  @record
end

#userObject (readonly)

Returns the value of attribute user.



15
16
17
# File 'lib/lawkeeper.rb', line 15

def user
  @user
end