Class: AuthLh::Role
- Inherits:
-
Object
- Object
- AuthLh::Role
- Defined in:
- lib/auth_lh/role.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(attributes = {}) ⇒ Role
Returns a new instance of Role.
5 6 7 8 9 |
# File 'lib/auth_lh/role.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) end end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/auth_lh/role.rb', line 3 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/auth_lh/role.rb', line 3 def name @name end |