Class: Dinie::CredentialWithSecret

Inherits:
Credential show all
Defined in:
sig/dinie/generated/types/credential.rbs,
lib/dinie/generated/types/credential.rb

Overview

The creation-only credential — Credential plus client_secret (the contract's allOf).

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from Credential

#client_id, #created_at, #expires_at, #id, #last_used_at, #name, #status, #updated_at

Class Method Summary collapse

Methods inherited from Credential

serialize_create

Methods inherited from Internal::Model

#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Dinie::Internal::Model

Instance Attribute Details

#client_secret ⇒ String (readonly)

Returns the value of attribute client_secret.

Returns:

  • (String)


22
23
24
# File 'sig/dinie/generated/types/credential.rbs', line 22

def client_secret
  @client_secret
end

Class Method Details

.deserialize(raw) ⇒ CredentialWithSecret

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/dinie/generated/types/credential.rb', line 37

def self.deserialize(raw)
  new(
    client_id: raw[:client_id],
    client_secret: raw[:client_secret],
    created_at: raw[:created_at],
    description: raw[:description],
    expires_at: raw[:expires_at],
    id: raw[:id],
    last_used_at: raw[:last_used_at],
    name: raw[:name],
    status: raw[:status],
    updated_at: raw[:updated_at]
  )
end