Class: Supabase::Storage::Types::UploadResponse
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Storage::Types::UploadResponse
- 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
-
#full_path ⇒ Object
(also: #fullPath)
Returns the value of attribute full_path.
-
#key ⇒ Object
Returns the value of attribute key.
-
#path ⇒ Object
Returns the value of attribute path.
Class Method Summary collapse
Instance Attribute Details
#full_path ⇒ Object Also known as: fullPath
Returns the value of attribute full_path
47 48 49 |
# File 'lib/supabase/storage/types.rb', line 47 def full_path @full_path end |
#key ⇒ Object
Returns the value of attribute key
47 48 49 |
# File 'lib/supabase/storage/types.rb', line 47 def key @key end |
#path ⇒ Object
Returns the value of attribute 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 |