Class: WorkOS::RevokeSession

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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_toObject

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_idObject

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