Class: WorkOS::DataIntegrationCredentialsResponseCredential

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

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  auth_method: :auth_method,
  value: :value,
  expires_at: :expires_at,
  scopes: :scopes,
  missing_scopes: :missing_scopes
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationCredentialsResponseCredential

Returns a new instance of DataIntegrationCredentialsResponseCredential.



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

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @auth_method = hash[:auth_method]
  @value = hash[:value]
  @expires_at = hash[:expires_at]
  @scopes = hash[:scopes] || []
  @missing_scopes = hash[:missing_scopes] || []
end

Instance Attribute Details

#auth_methodObject

Returns the value of attribute auth_method.



16
17
18
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16

def auth_method
  @auth_method
end

#expires_atObject

Returns the value of attribute expires_at.



16
17
18
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16

def expires_at
  @expires_at
end

#missing_scopesObject

Returns the value of attribute missing_scopes.



16
17
18
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16

def missing_scopes
  @missing_scopes
end

#objectObject

Returns the value of attribute object.



16
17
18
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16

def object
  @object
end

#scopesObject

Returns the value of attribute scopes.



16
17
18
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16

def scopes
  @scopes
end

#valueObject

Returns the value of attribute value.



16
17
18
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16

def value
  @value
end