Class: WorkAuthClient::ClientCredentialsRequest
- Inherits:
-
Object
- Object
- WorkAuthClient::ClientCredentialsRequest
- Defined in:
- lib/work_auth_client.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(client_id:, client_secret:) ⇒ ClientCredentialsRequest
constructor
A new instance of ClientCredentialsRequest.
Constructor Details
#initialize(client_id:, client_secret:) ⇒ ClientCredentialsRequest
Returns a new instance of ClientCredentialsRequest.
58 59 60 61 |
# File 'lib/work_auth_client.rb', line 58 def initialize(client_id:, client_secret:) self.client_id = client_id self.client_secret = client_secret end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
56 57 58 |
# File 'lib/work_auth_client.rb', line 56 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
56 57 58 |
# File 'lib/work_auth_client.rb', line 56 def client_secret @client_secret end |
Instance Method Details
#as_json ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/work_auth_client.rb', line 63 def as_json { client_id: client_id, client_secret: client_secret, grant_type: 'client_credentials', } end |