Class: Clerk::Models::Components::Passkey
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Passkey
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/passkey.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, name:, last_used_at:, id: nil, verification: nil) ⇒ Passkey
constructor
A new instance of Passkey.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, name:, last_used_at:, id: nil, verification: nil) ⇒ Passkey
Returns a new instance of Passkey.
29 30 31 32 33 34 35 |
# File 'lib/clerk/models/components/passkey.rb', line 29 def initialize(object:, name:, last_used_at:, id: nil, verification: nil) @object = object @name = name @last_used_at = last_used_at @id = id @verification = verification end |
Instance Method Details
#==(other) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/clerk/models/components/passkey.rb', line 38 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @name == other.name return false unless @last_used_at == other.last_used_at return false unless @id == other.id return false unless @verification == other.verification true end |