Class: Supabase::Storage::Types::SearchV2Object
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Storage::Types::SearchV2Object
- Defined in:
- lib/supabase/storage/types.rb
Overview
— list_v2 ———————————————————–
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#key ⇒ Object
Returns the value of attribute key.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
62 63 64 |
# File 'lib/supabase/storage/types.rb', line 62 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
62 63 64 |
# File 'lib/supabase/storage/types.rb', line 62 def id @id end |
#key ⇒ Object
Returns the value of attribute key
62 63 64 |
# File 'lib/supabase/storage/types.rb', line 62 def key @key end |
#metadata ⇒ Object
Returns the value of attribute metadata
62 63 64 |
# File 'lib/supabase/storage/types.rb', line 62 def @metadata end |
#name ⇒ Object
Returns the value of attribute name
62 63 64 |
# File 'lib/supabase/storage/types.rb', line 62 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
62 63 64 |
# File 'lib/supabase/storage/types.rb', line 62 def updated_at @updated_at end |
Class Method Details
.from_hash(hash) ⇒ Object
63 64 65 66 67 68 69 70 |
# File 'lib/supabase/storage/types.rb', line 63 def self.from_hash(hash) return nil if hash.nil? h = hash.transform_keys(&:to_s) new(id: h["id"], name: h["name"], updated_at: h["updated_at"], created_at: h["created_at"], metadata: h["metadata"], key: h["key"]) end |