Class: Supabase::Auth::Types::UserIdentity
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Auth::Types::UserIdentity
- Defined in:
- lib/supabase/auth/types.rb
Overview
User Identity (includes identity_id)
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#identity_data ⇒ Object
Returns the value of attribute identity_data.
-
#identity_id ⇒ Object
Returns the value of attribute identity_id.
-
#last_sign_in_at ⇒ Object
Returns the value of attribute last_sign_in_at.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def id @id end |
#identity_data ⇒ Object
Returns the value of attribute identity_data
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def identity_data @identity_data end |
#identity_id ⇒ Object
Returns the value of attribute identity_id
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def identity_id @identity_id end |
#last_sign_in_at ⇒ Object
Returns the value of attribute last_sign_in_at
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def last_sign_in_at @last_sign_in_at end |
#provider ⇒ Object
Returns the value of attribute provider
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def provider @provider end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def updated_at @updated_at end |
#user_id ⇒ Object
Returns the value of attribute user_id
398 399 400 |
# File 'lib/supabase/auth/types.rb', line 398 def user_id @user_id end |
Class Method Details
.from_hash(hash) ⇒ Object
409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/supabase/auth/types.rb', line 409 def self.from_hash(hash) return nil if hash.nil? new( id: hash["id"] || hash[:id], identity_id: hash["identity_id"] || hash[:identity_id], user_id: hash["user_id"] || hash[:user_id], identity_data: hash["identity_data"] || hash[:identity_data] || {}, provider: hash["provider"] || hash[:provider], created_at: Types.(hash["created_at"] || hash[:created_at]), last_sign_in_at: Types.(hash["last_sign_in_at"] || hash[:last_sign_in_at]), updated_at: Types.(hash["updated_at"] || hash[:updated_at]) ) end |