Class: WorkOS::WidgetSessionTokenResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::WidgetSessionTokenResponse
- Defined in:
- lib/workos/widgets/widget_session_token_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ token: :token }.freeze
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WidgetSessionTokenResponse
constructor
A new instance of WidgetSessionTokenResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ WidgetSessionTokenResponse
Returns a new instance of WidgetSessionTokenResponse.
13 14 15 16 |
# File 'lib/workos/widgets/widget_session_token_response.rb', line 13 def initialize(json) hash = self.class.normalize(json) @token = hash[:token] end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
11 12 13 |
# File 'lib/workos/widgets/widget_session_token_response.rb', line 11 def token @token end |