Class: WorkOS::RevokeSession

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/user_management/revoke_session.rb

Constant Summary collapse

HASH_ATTRS =
{
  session_id: :session_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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