Class: WorkOS::PipeConnectedAccount

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/shared/pipe_connected_account.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  data_integration_id: :data_integration_id,
  provider_slug: :provider_slug,
  user_id: :user_id,
  organization_id: :organization_id,
  scopes: :scopes,
  state: :state,
  created_at: :created_at,
  updated_at: :updated_at
}.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) ⇒ PipeConnectedAccount

Returns a new instance of PipeConnectedAccount.



32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/workos/shared/pipe_connected_account.rb', line 32

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

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def created_at
  @created_at
end

#data_integration_idObject

Returns the value of attribute data_integration_id.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def data_integration_id
  @data_integration_id
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def id
  @id
end

#objectObject

Returns the value of attribute object.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def organization_id
  @organization_id
end

#provider_slugObject

Returns the value of attribute provider_slug.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def provider_slug
  @provider_slug
end

#scopesObject

Returns the value of attribute scopes.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def scopes
  @scopes
end

#stateObject

Returns the value of attribute state.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def state
  @state
end

#updated_atObject

Returns the value of attribute updated_at.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def updated_at
  @updated_at
end

#user_idObject

Returns the value of attribute user_id.



20
21
22
# File 'lib/workos/shared/pipe_connected_account.rb', line 20

def user_id
  @user_id
end