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 }.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.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
Attributes inherited from WorkOS::Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ TokenQuery
constructor
A new instance of TokenQuery.
Methods inherited from WorkOS::Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ TokenQuery
Returns a new instance of TokenQuery.
20 21 22 23 24 25 26 |
# File 'lib/workos/sso/token_query.rb', line 20 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] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
14 15 16 |
# File 'lib/workos/sso/token_query.rb', line 14 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
14 15 16 |
# File 'lib/workos/sso/token_query.rb', line 14 def client_secret @client_secret end |
#code ⇒ Object
Returns the value of attribute code.
14 15 16 |
# File 'lib/workos/sso/token_query.rb', line 14 def code @code end |
#grant_type ⇒ Object
Returns the value of attribute grant_type.
14 15 16 |
# File 'lib/workos/sso/token_query.rb', line 14 def grant_type @grant_type end |