Module: FidoMetadata::Coercer::AuthenticatorGetInfo

Defined in:
lib/fido_metadata/coercer/authenticator_get_info.rb

Class Method Summary collapse

Class Method Details

.coerce(value) ⇒ Object



8
9
10
11
12
# File 'lib/fido_metadata/coercer/authenticator_get_info.rb', line 8

def self.coerce(value)
  return value if value.is_a?(FidoMetadata::AuthenticatorGetInfo)

  FidoMetadata::AuthenticatorGetInfo.from_json(value) if value
end