Class: WorkOS::ClientCredentialsDataIntegrationVendedCredential

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/client_credentials_data_integration_vended_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,
  metadata: :metadata,
  config: :config
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ClientCredentialsDataIntegrationVendedCredential

Returns a new instance of ClientCredentialsDataIntegrationVendedCredential.



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 28

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] || []
  @metadata = hash[:metadata] || {}
  @config = hash[:config] || {}
end

Instance Attribute Details

#auth_method ⇒ Object

Returns the value of attribute auth_method.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def auth_method
  @auth_method
end

#config ⇒ Object

Returns the value of attribute config.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def config
  @config
end

#expires_at ⇒ Object

Returns the value of attribute expires_at.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def expires_at
  @expires_at
end

#metadata ⇒ Object

Returns the value of attribute metadata.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def 
  @metadata
end

#missing_scopes ⇒ Object

Returns the value of attribute missing_scopes.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def missing_scopes
  @missing_scopes
end

#object ⇒ Object

Returns the value of attribute object.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def object
  @object
end

#scopes ⇒ Object

Returns the value of attribute scopes.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def scopes
  @scopes
end

#value ⇒ Object

Returns the value of attribute value.



18
19
20
# File 'lib/workos/shared/client_credentials_data_integration_vended_credential.rb', line 18

def value
  @value
end