Class: Supabase::Storage::Types::UploadResponse

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

Overview

Returned by upload/update. Python exposes :path/:full_path/:fullPath; we keep both snake_case and camelCase aliases so call sites that follow Python docs work.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#full_pathObject Also known as: fullPath

Returns the value of attribute full_path

Returns:

  • (Object)

    the current value of full_path



47
48
49
# File 'lib/supabase/storage/types.rb', line 47

def full_path
  @full_path
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



47
48
49
# File 'lib/supabase/storage/types.rb', line 47

def key
  @key
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



47
48
49
# File 'lib/supabase/storage/types.rb', line 47

def path
  @path
end

Class Method Details

.from_hash(path:, key:) ⇒ Object



50
51
52
# File 'lib/supabase/storage/types.rb', line 50

def self.from_hash(path:, key:)
  new(path: path, full_path: key, key: key)
end