Class: OneLogin::Api::Models::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/onelogin/api/models/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.


7
8
9
# File 'lib/onelogin/api/models/role.rb', line 7

def id
  @id
end

#nameObject

Returns the value of attribute name.


7
8
9
# File 'lib/onelogin/api/models/role.rb', line 7

def name
  @name
end