Class: WebAuthn::PublicKeyCredential::UserEntity
- Defined in:
- lib/webauthn/public_key_credential/user_entity.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(id:, display_name: nil, **keyword_arguments) ⇒ UserEntity
constructor
A new instance of UserEntity.
Methods included from JSONSerializer
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_name ⇒ Object (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 |
#id ⇒ Object (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 |