Class: Supabase::Storage::Types::AnalyticsBucket
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Storage::Types::AnalyticsBucket
- Defined in:
- lib/supabase/storage/types.rb
Overview
Returned by analytics.create / analytics.list. Mirrors storage3’s ‘AnalyticsBucket` pydantic model.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#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
104 105 106 |
# File 'lib/supabase/storage/types.rb', line 104 def created_at @created_at end |
#format ⇒ Object
Returns the value of attribute format
104 105 106 |
# File 'lib/supabase/storage/types.rb', line 104 def format @format end |
#name ⇒ Object
Returns the value of attribute name
104 105 106 |
# File 'lib/supabase/storage/types.rb', line 104 def name @name end |
#type ⇒ Object
Returns the value of attribute type
104 105 106 |
# File 'lib/supabase/storage/types.rb', line 104 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
104 105 106 |
# File 'lib/supabase/storage/types.rb', line 104 def updated_at @updated_at end |
Class Method Details
.from_hash(hash) ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/supabase/storage/types.rb', line 105 def self.from_hash(hash) return nil if hash.nil? h = hash.transform_keys(&:to_s) new(name: h["name"], type: h["type"], format: h["format"], created_at: h["created_at"], updated_at: h["updated_at"]) end |