Class: WorkOS::AgentBlueprintSessionSetting
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentBlueprintSessionSetting
- Defined in:
- lib/workos/agents/agent_blueprint_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
-
#access_token_ttl_seconds ⇒ Object
Returns the value of attribute access_token_ttl_seconds.
-
#max_age_seconds ⇒ Object
Returns the value of attribute max_age_seconds.
-
#refresh_token_ttl_seconds ⇒ Object
Returns the value of attribute refresh_token_ttl_seconds.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentBlueprintSessionSetting
constructor
A new instance of AgentBlueprintSessionSetting.
Constructor Details
#initialize(json) ⇒ AgentBlueprintSessionSetting
Returns a new instance of AgentBlueprintSessionSetting.
18 19 20 21 22 23 |
# File 'lib/workos/agents/agent_blueprint_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_seconds ⇒ Object
Returns the value of attribute access_token_ttl_seconds.
13 14 15 |
# File 'lib/workos/agents/agent_blueprint_session_setting.rb', line 13 def access_token_ttl_seconds @access_token_ttl_seconds end |
#max_age_seconds ⇒ Object
Returns the value of attribute max_age_seconds.
13 14 15 |
# File 'lib/workos/agents/agent_blueprint_session_setting.rb', line 13 def max_age_seconds @max_age_seconds end |
#refresh_token_ttl_seconds ⇒ Object
Returns the value of attribute refresh_token_ttl_seconds.
13 14 15 |
# File 'lib/workos/agents/agent_blueprint_session_setting.rb', line 13 def refresh_token_ttl_seconds @refresh_token_ttl_seconds end |