Class: TurnkeyClient::AuthenticatorTransport
- Inherits:
-
Object
- Object
- TurnkeyClient::AuthenticatorTransport
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |