Class: Rafflesia::PasskeySummary
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PasskeySummary
- Defined in:
- lib/rafflesia/auth/passkey_summary.rb
Constant Summary collapse
- HASH_ATTRS =
{ created_at: :created_at, id: :id, label: :label, last_used_at: :last_used_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#last_used_at ⇒ Object
Returns the value of attribute last_used_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ PasskeySummary
constructor
A new instance of PasskeySummary.
Constructor Details
#initialize(json) ⇒ PasskeySummary
Returns a new instance of PasskeySummary.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/auth/passkey_summary.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @created_at = hash[:created_at] @id = hash[:id] @label = hash[:label] @last_used_at = hash[:last_used_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
15 16 17 |
# File 'lib/rafflesia/auth/passkey_summary.rb', line 15 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/rafflesia/auth/passkey_summary.rb', line 15 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
15 16 17 |
# File 'lib/rafflesia/auth/passkey_summary.rb', line 15 def label @label end |
#last_used_at ⇒ Object
Returns the value of attribute last_used_at.
15 16 17 |
# File 'lib/rafflesia/auth/passkey_summary.rb', line 15 def last_used_at @last_used_at end |