Class: Nephophobia::Response::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/nephophobia/response/role.rb', line 6

def attributes
  @attributes
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/nephophobia/response/role.rb', line 4

def name
  @name
end