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.
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
- #class_name ⇒ Object
-
#initialize(name, param = :id) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(name, param = :id) ⇒ Model
Returns a new instance of Model.
35 36 37 38 |
# File 'lib/lockdown/permission.rb', line 35 def initialize(name, param = :id) @name = name @param = param end |
Instance Attribute Details
#association ⇒ Object
Returns the value of attribute association.
33 34 35 |
# File 'lib/lockdown/permission.rb', line 33 def association @association end |
#controller_method ⇒ Object
Returns the value of attribute controller_method.
33 34 35 |
# File 'lib/lockdown/permission.rb', line 33 def controller_method @controller_method end |
#model_method ⇒ Object
Returns the value of attribute model_method.
33 34 35 |
# File 'lib/lockdown/permission.rb', line 33 def model_method @model_method end |
#name ⇒ Object
Returns the value of attribute name.
33 34 35 |
# File 'lib/lockdown/permission.rb', line 33 def name @name end |
#param ⇒ Object
Returns the value of attribute param.
33 34 35 |
# File 'lib/lockdown/permission.rb', line 33 def param @param end |
Instance Method Details
#class_name ⇒ Object
40 41 42 |
# File 'lib/lockdown/permission.rb', line 40 def class_name self.name.to_s.camelize end |