class WebAuthn::AuthenticatorData::Flags
Public Class Methods
decode(input)
click to toggle source
# File lib/web_authn/authenticator_data/flags.rb, line 25 def decode(input) bit_array = input.getbyte(0) new( up: bit_array[0] == 1, uv: bit_array[2] == 1, at: bit_array[6] == 1, ex: bit_array[7] == 1 ) end
new(up:, uv:, at:, ex:)
click to toggle source
# File lib/web_authn/authenticator_data/flags.rb, line 10 def initialize(up:, uv:, at:, ex:) self.up = up self.uv = uv self.at = at self.ex = ex end
Public Instance Methods
==(target)
click to toggle source
# File lib/web_authn/authenticator_data/flags.rb, line 17 def ==(target) up == target.up && uv == target.uv && at == target.at && ex == target.ex end