Class: WorkOS::DataIntegrationsGetUserTokenRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/pipes/data_integrations_get_user_token_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  user_id: :user_id,
  organization_id: :organization_id
}.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) ⇒ DataIntegrationsGetUserTokenRequest

Returns a new instance of DataIntegrationsGetUserTokenRequest.



16
17
18
19
20
# File 'lib/workos/pipes/data_integrations_get_user_token_request.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @user_id = hash[:user_id]
  @organization_id = hash[:organization_id]
end

Instance Attribute Details

#organization_idObject

Returns the value of attribute organization_id.



12
13
14
# File 'lib/workos/pipes/data_integrations_get_user_token_request.rb', line 12

def organization_id
  @organization_id
end

#user_idObject

Returns the value of attribute user_id.



12
13
14
# File 'lib/workos/pipes/data_integrations_get_user_token_request.rb', line 12

def user_id
  @user_id
end