Class: Clonk::Client

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

Overview

This class represents a client within SSO. A client allows a user to authenticate against SSO with their credentials.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clients_response) ⇒ Client

Returns a new instance of Client.



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

def initialize(clients_response)
  @id = clients_response['id']
  @name = clients_response['clientId']
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/clonk/client.rb', line 9

def name
  @name
end