Class: WorkOS::TokenQuery
- Inherits:
-
WorkOS::Types::BaseModel
- Object
- WorkOS::Types::BaseModel
- WorkOS::TokenQuery
- Defined in:
- lib/workos/sso/token_query.rb
Constant Summary collapse
- HASH_ATTRS =
{ client_id: :client_id, client_secret: :client_secret, code: :code, grant_type: :grant_type, code_verifier: :code_verifier, subject_token: :subject_token, subject_token_type: :subject_token_type, organization_id: :organization_id }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#code ⇒ Object
Returns the value of attribute code.
-
#code_verifier ⇒ Object
Returns the value of attribute code_verifier.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#subject_token ⇒ Object
Returns the value of attribute subject_token.
-
#subject_token_type ⇒ Object
Returns the value of attribute subject_token_type.
Instance Method Summary collapse
-
#initialize(json) ⇒ TokenQuery
constructor
A new instance of TokenQuery.
Constructor Details
#initialize(json) ⇒ TokenQuery
Returns a new instance of TokenQuery.
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/workos/sso/token_query.rb', line 28 def initialize(json) hash = self.class.normalize(json) @client_id = hash[:client_id] @client_secret = hash[:client_secret] @code = hash[:code] @grant_type = hash[:grant_type] @code_verifier = hash[:code_verifier] @subject_token = hash[:subject_token] @subject_token_type = hash[:subject_token_type] @organization_id = hash[:organization_id] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def client_secret @client_secret end |
#code ⇒ Object
Returns the value of attribute code.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def code @code end |
#code_verifier ⇒ Object
Returns the value of attribute code_verifier.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def code_verifier @code_verifier end |
#grant_type ⇒ Object
Returns the value of attribute grant_type.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def grant_type @grant_type end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def organization_id @organization_id end |
#subject_token ⇒ Object
Returns the value of attribute subject_token.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def subject_token @subject_token end |
#subject_token_type ⇒ Object
Returns the value of attribute subject_token_type.
18 19 20 |
# File 'lib/workos/sso/token_query.rb', line 18 def subject_token_type @subject_token_type end |