Class: WebAuthn::PublicKeyCredential::Entity

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

Direct Known Subclasses

RPEntity, UserEntity

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ Entity

Returns a new instance of Entity.



10
11
12
# File 'lib/webauthn/public_key_credential/entity.rb', line 10

def initialize(name:)
  @name = name
end

Instance Attribute Details

#nameObject (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_jsonObject



14
15
16
# File 'lib/webauthn/public_key_credential/entity.rb', line 14

def as_json
  to_hash.to_camelback_keys
end