Class: Supabase::Auth::Types::AMREntry
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Auth::Types::AMREntry
- Defined in:
- lib/supabase/auth/types.rb
Overview
Authentication method reference entry (matches Python AMREntry)
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method
19 20 21 |
# File 'lib/supabase/auth/types.rb', line 19 def method @method end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
19 20 21 |
# File 'lib/supabase/auth/types.rb', line 19 def @timestamp end |
Class Method Details
.from_hash(hash) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/supabase/auth/types.rb', line 24 def self.from_hash(hash) return nil if hash.nil? new( method: hash["method"] || hash[:method], timestamp: hash["timestamp"] || hash[:timestamp] ) end |