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, return_to: :return_to }.freeze
Instance Attribute Summary collapse
-
#return_to ⇒ Object
Returns the value of attribute return_to.
-
#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.
16 17 18 19 20 |
# File 'lib/workos/user_management/revoke_session.rb', line 16 def initialize(json) hash = self.class.normalize(json) @session_id = hash[:session_id] @return_to = hash[:return_to] end |
Instance Attribute Details
#return_to ⇒ Object
Returns the value of attribute return_to.
12 13 14 |
# File 'lib/workos/user_management/revoke_session.rb', line 12 def return_to @return_to end |
#session_id ⇒ Object
Returns the value of attribute session_id.
12 13 14 |
# File 'lib/workos/user_management/revoke_session.rb', line 12 def session_id @session_id end |