Class: WorkOS::AgentBlueprintsTokenMintTokenRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/agents/agent_blueprints_token_mint_token_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  user_access_token: :user_access_token,
  intent: :intent,
  organization_id: :organization_id,
  agent_access_token: :agent_access_token,
  refresh_token: :refresh_token
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentBlueprintsTokenMintTokenRequest

Returns a new instance of AgentBlueprintsTokenMintTokenRequest.



24
25
26
27
28
29
30
31
32
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 24

def initialize(json)
  hash = self.class.normalize(json)
  @type = hash[:type]
  @user_access_token = hash[:user_access_token]
  @intent = hash[:intent]
  @organization_id = hash[:organization_id]
  @agent_access_token = hash[:agent_access_token]
  @refresh_token = hash[:refresh_token]
end

Instance Attribute Details

#agent_access_tokenObject

Returns the value of attribute agent_access_token.



16
17
18
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 16

def agent_access_token
  @agent_access_token
end

#intentObject

Returns the value of attribute intent.



16
17
18
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 16

def intent
  @intent
end

#organization_idObject

Returns the value of attribute organization_id.



16
17
18
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 16

def organization_id
  @organization_id
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



16
17
18
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 16

def refresh_token
  @refresh_token
end

#typeObject

Returns the value of attribute type.



16
17
18
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 16

def type
  @type
end

#user_access_tokenObject

Returns the value of attribute user_access_token.



16
17
18
# File 'lib/workos/agents/agent_blueprints_token_mint_token_request.rb', line 16

def user_access_token
  @user_access_token
end