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