Class: Lockdown::Model
- Inherits:
-
Object
- Object
- Lockdown::Model
- Defined in:
- lib/lockdown/permission.rb
Instance Attribute Summary collapse
-
#association ⇒ Object
Returns the value of attribute association.
-
#controller_method ⇒ Object
Returns the value of attribute controller_method.
-
#model_method ⇒ Object
Returns the value of attribute model_method.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(name) ⇒ Model
Returns a new instance of Model.
16 17 18 |
# File 'lib/lockdown/permission.rb', line 16 def initialize(name) @name = name end |
Instance Attribute Details
#association ⇒ Object
Returns the value of attribute association.
14 15 16 |
# File 'lib/lockdown/permission.rb', line 14 def association @association end |
#controller_method ⇒ Object
Returns the value of attribute controller_method.
14 15 16 |
# File 'lib/lockdown/permission.rb', line 14 def controller_method @controller_method end |
#model_method ⇒ Object
Returns the value of attribute model_method.
14 15 16 |
# File 'lib/lockdown/permission.rb', line 14 def model_method @model_method end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/lockdown/permission.rb', line 14 def name @name end |