Class: Supabase::Storage::Types::SearchV2Folder

Inherits:
Struct
  • Object
show all
Defined in:
lib/supabase/storage/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



73
74
75
# File 'lib/supabase/storage/types.rb', line 73

def created_at
  @created_at
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



73
74
75
# File 'lib/supabase/storage/types.rb', line 73

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



73
74
75
# File 'lib/supabase/storage/types.rb', line 73

def name
  @name
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of 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