Class: WebAuthn::PublicKeyCredential::UserEntity

Inherits:
Entity
  • Object
show all
Defined in:
lib/webauthn/public_key_credential/user_entity.rb

Instance Attribute Summary collapse

Attributes inherited from Entity

#name

Instance Method Summary collapse

Methods inherited from Entity

#as_json

Constructor Details

#initialize(id:, display_name: nil, **keyword_arguments) ⇒ UserEntity

Returns a new instance of UserEntity.



10
11
12
13
14
15
# File 'lib/webauthn/public_key_credential/user_entity.rb', line 10

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

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

Instance Attribute Details

#display_nameObject (readonly)

Returns the value of attribute display_name.



8
9
10
# File 'lib/webauthn/public_key_credential/user_entity.rb', line 8

def display_name
  @display_name
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/webauthn/public_key_credential/user_entity.rb', line 8

def id
  @id
end