Class: WorkOS::DataIntegrationCredentials

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/pipes_provider/data_integration_credentials.rb

Constant Summary collapse

HASH_ATTRS =
{
  credentials_type: :credentials_type,
  has_credentials: :has_credentials,
  client_id: :client_id,
  client_secret_last_four: :client_secret_last_four,
  redirect_uri: :redirect_uri
}.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) ⇒ DataIntegrationCredentials

Returns a new instance of DataIntegrationCredentials.



22
23
24
25
26
27
28
29
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 22

def initialize(json)
  hash = self.class.normalize(json)
  @credentials_type = hash[:credentials_type]
  @has_credentials = hash[:has_credentials]
  @client_id = hash[:client_id]
  @client_secret_last_four = hash[:client_secret_last_four]
  @redirect_uri = hash[:redirect_uri]
end

Instance Attribute Details

#client_idObject

Returns the value of attribute client_id.



15
16
17
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15

def client_id
  @client_id
end

#client_secret_last_fourObject

Returns the value of attribute client_secret_last_four.



15
16
17
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15

def client_secret_last_four
  @client_secret_last_four
end

#credentials_typeObject

Returns the value of attribute credentials_type.



15
16
17
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15

def credentials_type
  @credentials_type
end

#has_credentialsObject

Returns the value of attribute has_credentials.



15
16
17
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15

def has_credentials
  @has_credentials
end

#redirect_uriObject

Returns the value of attribute redirect_uri.



15
16
17
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15

def redirect_uri
  @redirect_uri
end