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.
-
#proc_object ⇒ Object
Returns the value of attribute proc_object.
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.
38 39 40 41 |
# File 'lib/lockdown/permission.rb', line 38 def initialize(name, param = :id) @name = name @param = param end |
Instance Attribute Details
#association ⇒ Object
Returns the value of attribute association.
36 37 38 |
# File 'lib/lockdown/permission.rb', line 36 def association @association end |
#controller_method ⇒ Object
Returns the value of attribute controller_method.
36 37 38 |
# File 'lib/lockdown/permission.rb', line 36 def controller_method @controller_method end |
#model_method ⇒ Object
Returns the value of attribute model_method.
36 37 38 |
# File 'lib/lockdown/permission.rb', line 36 def model_method @model_method end |
#name ⇒ Object
Returns the value of attribute name.
36 37 38 |
# File 'lib/lockdown/permission.rb', line 36 def name @name end |
#param ⇒ Object
Returns the value of attribute param.
36 37 38 |
# File 'lib/lockdown/permission.rb', line 36 def param @param end |
#proc_object ⇒ Object
Returns the value of attribute proc_object.
36 37 38 |
# File 'lib/lockdown/permission.rb', line 36 def proc_object @proc_object end |
Instance Method Details
#class_name ⇒ Object
43 44 45 |
# File 'lib/lockdown/permission.rb', line 43 def class_name self.name.to_s.camelize end |