Class: Supabase::Auth::Types::Identity
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Auth::Types::Identity
- Defined in:
- lib/supabase/auth/types.rb
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
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def id @id end |
#identity_data ⇒ Object
Returns the value of attribute identity_data
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def identity_data @identity_data end |
#identity_id ⇒ Object
Returns the value of attribute identity_id
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def identity_id @identity_id end |
#last_sign_in_at ⇒ Object
Returns the value of attribute last_sign_in_at
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def last_sign_in_at @last_sign_in_at end |
#provider ⇒ Object
Returns the value of attribute provider
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def provider @provider end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def updated_at @updated_at end |
#user_id ⇒ Object
Returns the value of attribute user_id
57 58 59 |
# File 'lib/supabase/auth/types.rb', line 57 def user_id @user_id end |
Class Method Details
.from_hash(hash) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/supabase/auth/types.rb', line 68 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], last_sign_in_at: Types.(hash["last_sign_in_at"] || hash[:last_sign_in_at]), created_at: Types.(hash["created_at"] || hash[:created_at]), updated_at: Types.(hash["updated_at"] || hash[:updated_at]) ) end |