Class: Clonk::Client
- Inherits:
-
Object
- Object
- Clonk::Client
- 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
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(clients_response) ⇒ Client
constructor
A new instance of Client.
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
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/clonk/client.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/clonk/client.rb', line 9 def name @name end |