Sha256: 699210d4a6d9437556e14b9ae99f306f74171de15b218482ae7cd8633538b84a

Contents?: true

Size: 474 Bytes

Versions: 18

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

require "webauthn/public_key_credential/entity"

module WebAuthn
  class PublicKeyCredential
    class UserEntity < Entity
      attr_reader :id, :display_name

      def initialize(id:, display_name: nil, **keyword_arguments)
        super(**keyword_arguments)

        @id = id
        @display_name = display_name || name
      end

      private

      def attributes
        super.concat([:id, :display_name])
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
webauthn-3.2.2 lib/webauthn/public_key_credential/user_entity.rb
webauthn-3.2.1 lib/webauthn/public_key_credential/user_entity.rb
webauthn-3.2.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-3.1.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-3.0.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-3.0.0.alpha2 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.5.2 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.5.1 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.5.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.4.1 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.4.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-3.0.0.alpha1 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.3.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.2.1 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.2.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.1.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.0.0 lib/webauthn/public_key_credential/user_entity.rb
webauthn-2.0.0.beta1 lib/webauthn/public_key_credential/user_entity.rb