Class: WorkOS::ApiKeyDataIntegrationVendedCredential

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/api_keys/api_key_data_integration_vended_credential.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  auth_method: :auth_method,
  value: :value,
  config: :config
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ApiKeyDataIntegrationVendedCredential

Returns a new instance of ApiKeyDataIntegrationVendedCredential.



20
21
22
23
24
25
26
# File 'lib/workos/api_keys/api_key_data_integration_vended_credential.rb', line 20

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @auth_method = hash[:auth_method]
  @value = hash[:value]
  @config = hash[:config] || {}
end

Instance Attribute Details

#auth_method ⇒ Object

Returns the value of attribute auth_method.



14
15
16
# File 'lib/workos/api_keys/api_key_data_integration_vended_credential.rb', line 14

def auth_method
  @auth_method
end

#config ⇒ Object

Returns the value of attribute config.



14
15
16
# File 'lib/workos/api_keys/api_key_data_integration_vended_credential.rb', line 14

def config
  @config
end

#object ⇒ Object

Returns the value of attribute object.



14
15
16
# File 'lib/workos/api_keys/api_key_data_integration_vended_credential.rb', line 14

def object
  @object
end

#value ⇒ Object

Returns the value of attribute value.



14
15
16
# File 'lib/workos/api_keys/api_key_data_integration_vended_credential.rb', line 14

def value
  @value
end