Class: Rafflesia::PasskeySummary

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_atObject

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

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/rafflesia/auth/passkey_summary.rb', line 15

def id
  @id
end

#labelObject

Returns the value of attribute label.



15
16
17
# File 'lib/rafflesia/auth/passkey_summary.rb', line 15

def label
  @label
end

#last_used_atObject

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