Class: WorkOS::DataIntegrationsGetDataIntegrationAuthorizeUrlRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  user_id: :user_id,
  organization_id: :organization_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) ⇒ DataIntegrationsGetDataIntegrationAuthorizeUrlRequest

Returns a new instance of DataIntegrationsGetDataIntegrationAuthorizeUrlRequest.



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

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

Instance Attribute Details

#organization_idObject

Returns the value of attribute organization_id.



13
14
15
# File 'lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb', line 13

def organization_id
  @organization_id
end

#return_toObject

Returns the value of attribute return_to.



13
14
15
# File 'lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb', line 13

def return_to
  @return_to
end

#user_idObject

Returns the value of attribute user_id.



13
14
15
# File 'lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb', line 13

def user_id
  @user_id
end