Class: Clonk::Role

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

Overview

Represents a role within SSO.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_response) ⇒ Role

Returns a new instance of Role.



10
11
12
13
14
# File 'lib/clonk/role.rb', line 10

def initialize(role_response)
  @id = role_response['id']
  @container_id = role_response['containerId']
  @name = role_response['name']
end

Instance Attribute Details

#container_idObject

Returns the value of attribute container_id.



7
8
9
# File 'lib/clonk/role.rb', line 7

def container_id
  @container_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/clonk/role.rb', line 8

def name
  @name
end