Class: TurnkeyClient::AuthenticatorTransport

Inherits:
Object
  • Object
show all
Defined in:
lib/turnkey_client/models/authenticator_transport.rb

Constant Summary collapse

BLE =
'AUTHENTICATOR_TRANSPORT_BLE'.freeze
INTERNAL =
'AUTHENTICATOR_TRANSPORT_INTERNAL'.freeze
NFC =
'AUTHENTICATOR_TRANSPORT_NFC'.freeze
USB =
'AUTHENTICATOR_TRANSPORT_USB'.freeze
HYBRID =
'AUTHENTICATOR_TRANSPORT_HYBRID'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



24
25
26
27
28
# File 'lib/turnkey_client/models/authenticator_transport.rb', line 24

def build_from_hash(value)
  constantValues = AuthenticatorTransport.constants.select { |c| AuthenticatorTransport::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #AuthenticatorTransport" if constantValues.empty?
  value
end