Class: WebAuthn::PublicKeyCredential::Entity
- Inherits:
-
Object
- Object
- WebAuthn::PublicKeyCredential::Entity
- Defined in:
- lib/webauthn/public_key_credential/entity.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(name:, icon: nil) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize(name:, icon: nil) ⇒ Entity
Returns a new instance of Entity.
10 11 12 13 |
# File 'lib/webauthn/public_key_credential/entity.rb', line 10 def initialize(name:, icon: nil) @name = name @icon = icon end |
Instance Attribute Details
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
8 9 10 |
# File 'lib/webauthn/public_key_credential/entity.rb', line 8 def icon @icon end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/webauthn/public_key_credential/entity.rb', line 8 def name @name end |
Instance Method Details
#as_json ⇒ Object
15 16 17 |
# File 'lib/webauthn/public_key_credential/entity.rb', line 15 def as_json to_hash.to_camelback_keys end |