Class: WorkOS::DataIntegrationsListResponseDataConnectedAccount

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

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  user_id: :user_id,
  organization_id: :organization_id,
  scopes: :scopes,
  auth_method: :auth_method,
  api_key_last_4: :api_key_last_4,
  state: :state,
  created_at: :created_at,
  updated_at: :updated_at,
  userlandUserId: :userland_user_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) ⇒ DataIntegrationsListResponseDataConnectedAccount

Returns a new instance of DataIntegrationsListResponseDataConnectedAccount.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 43

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @user_id = hash[:user_id]
  @organization_id = hash[:organization_id]
  @scopes = hash[:scopes] || []
  @auth_method = hash[:auth_method]
  @api_key_last_4 = hash[:api_key_last_4]
  @state = hash[:state]
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @userland_user_id = hash[:userlandUserId]
end

Instance Attribute Details

#api_key_last_4Object

Returns the value of attribute api_key_last_4.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def api_key_last_4
  @api_key_last_4
end

#auth_methodObject

Returns the value of attribute auth_method.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def auth_method
  @auth_method
end

#created_atObject

Returns the value of attribute created_at.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def id
  @id
end

#objectObject

Returns the value of attribute object.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def organization_id
  @organization_id
end

#scopesObject

Returns the value of attribute scopes.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def scopes
  @scopes
end

#stateObject

Returns the value of attribute state.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def state
  @state
end

#updated_atObject

Returns the value of attribute updated_at.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def updated_at
  @updated_at
end

#user_idObject

Returns the value of attribute user_id.



24
25
26
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

def user_id
  @user_id
end

#userland_user_idObject

Deprecated.

Use user_id instead.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/workos/pipes/data_integrations_list_response_data_connected_account.rb', line 24

attr_accessor \
:object,
:id,
:user_id,
:organization_id,
:scopes,
:auth_method,
:api_key_last_4,
:state,
:created_at,
:updated_at