Class: OneLogin::Api::Models::Role
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::Role
- Defined in:
- lib/onelogin/api/models/role.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(data) ⇒ Role
Returns a new instance of Role.
9 10 11 12 |
# File 'lib/onelogin/api/models/role.rb', line 9 def initialize(data) @id = data['id'] @name = data['name'].to_s end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/onelogin/api/models/role.rb', line 7 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/onelogin/api/models/role.rb', line 7 def name @name end |