Class: WebAuthn::CredentialUserEntity
- Inherits:
-
CredentialEntity
- Object
- CredentialEntity
- WebAuthn::CredentialUserEntity
- Defined in:
- lib/webauthn/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 CredentialEntity
Instance Method Summary collapse
-
#initialize(id:, display_name: nil, **keyword_arguments) ⇒ CredentialUserEntity
constructor
A new instance of CredentialUserEntity.
Constructor Details
#initialize(id:, display_name: nil, **keyword_arguments) ⇒ CredentialUserEntity
Returns a new instance of CredentialUserEntity.
9 10 11 12 13 14 |
# File 'lib/webauthn/credential_user_entity.rb', line 9 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.
7 8 9 |
# File 'lib/webauthn/credential_user_entity.rb', line 7 def display_name @display_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/webauthn/credential_user_entity.rb', line 7 def id @id end |