Class: Supabase::Storage::Types::SearchV2Object

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

Overview

— list_v2 ———————————————————–

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



62
63
64
# File 'lib/supabase/storage/types.rb', line 62

def created_at
  @created_at
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



62
63
64
# File 'lib/supabase/storage/types.rb', line 62

def id
  @id
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



62
63
64
# File 'lib/supabase/storage/types.rb', line 62

def key
  @key
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



62
63
64
# File 'lib/supabase/storage/types.rb', line 62

def 
  @metadata
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



62
63
64
# File 'lib/supabase/storage/types.rb', line 62

def name
  @name
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

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