Class: Supabase::Storage::Types::SearchV2Folder
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Storage::Types::SearchV2Folder
- Defined in:
- lib/supabase/storage/types.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#key ⇒ Object
Returns the value of attribute key.
-
#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
73 74 75 |
# File 'lib/supabase/storage/types.rb', line 73 def created_at @created_at end |
#key ⇒ Object
Returns the value of attribute key
73 74 75 |
# File 'lib/supabase/storage/types.rb', line 73 def key @key end |
#name ⇒ Object
Returns the value of attribute name
73 74 75 |
# File 'lib/supabase/storage/types.rb', line 73 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
73 74 75 |
# File 'lib/supabase/storage/types.rb', line 73 def updated_at @updated_at end |
Class Method Details
.from_hash(hash) ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/supabase/storage/types.rb', line 74 def self.from_hash(hash) return nil if hash.nil? h = hash.transform_keys(&:to_s) new(key: h["key"], name: h["name"], created_at: h["created_at"], updated_at: h["updated_at"]) end |