Class: Lawkeeper::Policy
- Inherits:
-
Object
- Object
- Lawkeeper::Policy
- Defined in:
- lib/lawkeeper.rb
Defined Under Namespace
Classes: Scope
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, record) ⇒ Policy
constructor
A new instance of Policy.
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
#record ⇒ Object (readonly)
Returns the value of attribute record.
15 16 17 |
# File 'lib/lawkeeper.rb', line 15 def record @record end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
15 16 17 |
# File 'lib/lawkeeper.rb', line 15 def user @user end |