Class: Lockdown::Model

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#associationObject

Returns the value of attribute association.



14
15
16
# File 'lib/lockdown/permission.rb', line 14

def association
  @association
end

#controller_methodObject

Returns the value of attribute controller_method.



14
15
16
# File 'lib/lockdown/permission.rb', line 14

def controller_method
  @controller_method
end

#model_methodObject

Returns the value of attribute model_method.



14
15
16
# File 'lib/lockdown/permission.rb', line 14

def model_method
  @model_method
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/lockdown/permission.rb', line 14

def name
  @name
end