Class: FinchAPI::Models::Introspection::AuthenticationMethod

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/finch-api/models/introspection.rb

Overview

def initialize: (Hash | FinchAPI::BaseModel) -> void

Defined Under Namespace

Modules: Type Classes: ConnectionStatus

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, status: nil) ⇒ AuthenticationMethod

Returns a new instance of AuthenticationMethod.

Parameters:



5
# File 'lib/finch-api/models/introspection.rb', line 5

def initialize(connection_status: nil, products: nil, type: nil, **) = super

Instance Attribute Details

#connection_statusFinchAPI::Models::Introspection::AuthenticationMethod::ConnectionStatus?



158
159
# File 'lib/finch-api/models/introspection.rb', line 158

optional :connection_status,
-> { FinchAPI::Models::Introspection::AuthenticationMethod::ConnectionStatus }

#productsArray<String>?

An array of the authorized products associated with the ‘access_token`.

Returns:

  • (Array<String>, nil)


169
# File 'lib/finch-api/models/introspection.rb', line 169

optional :products, FinchAPI::ArrayOf[String]

#status=(value) ⇒ Symbol, FinchAPI::Models::ConnectionStatusType (writeonly)



2
3
4
# File 'lib/finch-api/models/introspection.rb', line 2

def status=(value)
  @status = value
end

#typeSymbol, ...

The type of authentication method.



179
# File 'lib/finch-api/models/introspection.rb', line 179

optional :type, enum: -> { FinchAPI::Models::Introspection::AuthenticationMethod::Type }