Class: WorkOS::AgentBlueprintCreatedDataSessionSetting

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/agent_blueprint_created_data_session_setting.rb

Constant Summary collapse

HASH_ATTRS =
{
  max_age_seconds: :max_age_seconds,
  access_token_ttl_seconds: :access_token_ttl_seconds,
  refresh_token_ttl_seconds: :refresh_token_ttl_seconds
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentBlueprintCreatedDataSessionSetting

Returns a new instance of AgentBlueprintCreatedDataSessionSetting.



18
19
20
21
22
23
# File 'lib/workos/shared/agent_blueprint_created_data_session_setting.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @max_age_seconds = hash[:max_age_seconds]
  @access_token_ttl_seconds = hash[:access_token_ttl_seconds]
  @refresh_token_ttl_seconds = hash[:refresh_token_ttl_seconds]
end

Instance Attribute Details

#access_token_ttl_secondsObject

Returns the value of attribute access_token_ttl_seconds.



13
14
15
# File 'lib/workos/shared/agent_blueprint_created_data_session_setting.rb', line 13

def access_token_ttl_seconds
  @access_token_ttl_seconds
end

#max_age_secondsObject

Returns the value of attribute max_age_seconds.



13
14
15
# File 'lib/workos/shared/agent_blueprint_created_data_session_setting.rb', line 13

def max_age_seconds
  @max_age_seconds
end

#refresh_token_ttl_secondsObject

Returns the value of attribute refresh_token_ttl_seconds.



13
14
15
# File 'lib/workos/shared/agent_blueprint_created_data_session_setting.rb', line 13

def refresh_token_ttl_seconds
  @refresh_token_ttl_seconds
end