Class: Nephophobia::Response::Role
- Inherits:
-
Object
- Object
- Nephophobia::Response::Role
- Defined in:
- lib/nephophobia/response/role.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#name ⇒ Object
readonly
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.
8 9 10 11 12 |
# File 'lib/nephophobia/response/role.rb', line 8 def initialize attributes @attributes = attributes @name = attributes['role'] end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/nephophobia/response/role.rb', line 6 def attributes @attributes end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nephophobia/response/role.rb', line 4 def name @name end |