Class: Role
- Inherits:
-
Object
- Object
- Role
- Includes:
- ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
- Defined in:
- lib/yadecli/model/role.rb
Overview
Role
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/yadecli/model/role.rb', line 11 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/yadecli/model/role.rb', line 11 def name @name end |
Instance Method Details
#attributes ⇒ Object
21 22 23 |
# File 'lib/yadecli/model/role.rb', line 21 def attributes instance_values end |
#attributes=(hash) ⇒ Object
15 16 17 18 19 |
# File 'lib/yadecli/model/role.rb', line 15 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |