Class: Pago::V2026_04::Models::OrganizationAvatarFileRead
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Overview
File to be used as an organization avatar.
Constant Summary collapse
- JSON_KEYS =
{ id: "id", organization_id: "organization_id", name: "name", path: "path", mime_type: "mime_type", size: "size", storage_version: "storage_version", checksum_etag: "checksum_etag", checksum_sha256_base64: "checksum_sha256_base64", checksum_sha256_hex: "checksum_sha256_hex", last_modified_at: "last_modified_at", version: "version", service: "service", is_uploaded: "is_uploaded", created_at: "created_at", size_readable: "size_readable", public_url: "public_url" }.freeze
- REQUIRED_KEYS =
["id", "organization_id", "name", "path", "mime_type", "size", "storage_version", "checksum_etag", "checksum_sha256_base64", "checksum_sha256_hex", "last_modified_at", "version", "service", "is_uploaded", "created_at", "size_readable", "public_url"].freeze
Instance Attribute Summary collapse
- #checksum_etag ⇒ String? readonly
- #checksum_sha256_base64 ⇒ String? readonly
- #checksum_sha256_hex ⇒ String? readonly
- #created_at ⇒ String readonly
-
#id ⇒ String
readonly
The ID of the object.
- #is_uploaded ⇒ Boolean readonly
- #last_modified_at ⇒ String? readonly
- #mime_type ⇒ String readonly
- #name ⇒ String readonly
- #organization_id ⇒ String readonly
- #path ⇒ String readonly
- #public_url ⇒ String readonly
- #service ⇒ String readonly
- #size ⇒ Integer readonly
- #size_readable ⇒ String readonly
- #storage_version ⇒ String? readonly
- #version ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, organization_id:, name:, path:, mime_type:, size:, storage_version:, checksum_etag:, checksum_sha256_base64:, checksum_sha256_hex:, last_modified_at:, version:, service:, is_uploaded:, created_at:, size_readable:, public_url:) ⇒ OrganizationAvatarFileRead
constructor
A new instance of OrganizationAvatarFileRead.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(id:, organization_id:, name:, path:, mime_type:, size:, storage_version:, checksum_etag:, checksum_sha256_base64:, checksum_sha256_hex:, last_modified_at:, version:, service:, is_uploaded:, created_at:, size_readable:, public_url:) ⇒ OrganizationAvatarFileRead
Returns a new instance of OrganizationAvatarFileRead.
34197 34198 34199 34200 34201 34202 34203 34204 34205 34206 34207 34208 34209 34210 34211 34212 34213 34214 34215 34216 34217 34218 34219 34220 34221 34222 34223 34224 34225 34226 34227 34228 34229 34230 34231 34232 34233 34234 |
# File 'lib/pago/v2026_04/models.rb', line 34197 def initialize( id:, organization_id:, name:, path:, mime_type:, size:, storage_version:, checksum_etag:, checksum_sha256_base64:, checksum_sha256_hex:, last_modified_at:, version:, service:, is_uploaded:, created_at:, size_readable:, public_url: ) super() assign(:id, id) assign(:organization_id, organization_id) assign(:name, name) assign(:path, path) assign(:mime_type, mime_type) assign(:size, size) assign(:storage_version, storage_version) assign(:checksum_etag, checksum_etag) assign(:checksum_sha256_base64, checksum_sha256_base64) assign(:checksum_sha256_hex, checksum_sha256_hex) assign(:last_modified_at, last_modified_at) assign(:version, version) assign(:service, service) assign(:is_uploaded, is_uploaded) assign(:created_at, created_at) assign(:size_readable, size_readable) assign(:public_url, public_url) end |
Instance Attribute Details
#checksum_etag ⇒ String? (readonly)
34168 34169 34170 |
# File 'lib/pago/v2026_04/models.rb', line 34168 def checksum_etag @checksum_etag end |
#checksum_sha256_base64 ⇒ String? (readonly)
34171 34172 34173 |
# File 'lib/pago/v2026_04/models.rb', line 34171 def checksum_sha256_base64 @checksum_sha256_base64 end |
#checksum_sha256_hex ⇒ String? (readonly)
34174 34175 34176 |
# File 'lib/pago/v2026_04/models.rb', line 34174 def checksum_sha256_hex @checksum_sha256_hex end |
#created_at ⇒ String (readonly)
34189 34190 34191 |
# File 'lib/pago/v2026_04/models.rb', line 34189 def created_at @created_at end |
#id ⇒ String (readonly)
The ID of the object.
34147 34148 34149 |
# File 'lib/pago/v2026_04/models.rb', line 34147 def id @id end |
#is_uploaded ⇒ Boolean (readonly)
34186 34187 34188 |
# File 'lib/pago/v2026_04/models.rb', line 34186 def is_uploaded @is_uploaded end |
#last_modified_at ⇒ String? (readonly)
34177 34178 34179 |
# File 'lib/pago/v2026_04/models.rb', line 34177 def last_modified_at @last_modified_at end |
#mime_type ⇒ String (readonly)
34159 34160 34161 |
# File 'lib/pago/v2026_04/models.rb', line 34159 def mime_type @mime_type end |
#name ⇒ String (readonly)
34153 34154 34155 |
# File 'lib/pago/v2026_04/models.rb', line 34153 def name @name end |
#organization_id ⇒ String (readonly)
34150 34151 34152 |
# File 'lib/pago/v2026_04/models.rb', line 34150 def organization_id @organization_id end |
#path ⇒ String (readonly)
34156 34157 34158 |
# File 'lib/pago/v2026_04/models.rb', line 34156 def path @path end |
#public_url ⇒ String (readonly)
34195 34196 34197 |
# File 'lib/pago/v2026_04/models.rb', line 34195 def public_url @public_url end |
#service ⇒ String (readonly)
34183 34184 34185 |
# File 'lib/pago/v2026_04/models.rb', line 34183 def service @service end |
#size ⇒ Integer (readonly)
34162 34163 34164 |
# File 'lib/pago/v2026_04/models.rb', line 34162 def size @size end |
#size_readable ⇒ String (readonly)
34192 34193 34194 |
# File 'lib/pago/v2026_04/models.rb', line 34192 def size_readable @size_readable end |
#storage_version ⇒ String? (readonly)
34165 34166 34167 |
# File 'lib/pago/v2026_04/models.rb', line 34165 def storage_version @storage_version end |
#version ⇒ String? (readonly)
34180 34181 34182 |
# File 'lib/pago/v2026_04/models.rb', line 34180 def version @version end |
Class Method Details
.from_json(data) ⇒ OrganizationAvatarFileRead?
34238 34239 34240 34241 34242 34243 34244 34245 34246 34247 34248 34249 34250 34251 34252 34253 34254 34255 34256 34257 34258 34259 34260 34261 34262 34263 34264 34265 |
# File 'lib/pago/v2026_04/models.rb', line 34238 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( id: (data.key?("id") ? data["id"] : ::Pago::UNSET), organization_id: (data.key?("organization_id") ? data["organization_id"] : ::Pago::UNSET), name: (data.key?("name") ? data["name"] : ::Pago::UNSET), path: (data.key?("path") ? data["path"] : ::Pago::UNSET), mime_type: (data.key?("mime_type") ? data["mime_type"] : ::Pago::UNSET), size: (data.key?("size") ? data["size"] : ::Pago::UNSET), storage_version: (data.key?("storage_version") ? data["storage_version"] : ::Pago::UNSET), checksum_etag: (data.key?("checksum_etag") ? data["checksum_etag"] : ::Pago::UNSET), checksum_sha256_base64: (data.key?("checksum_sha256_base64") ? data["checksum_sha256_base64"] : ::Pago::UNSET), checksum_sha256_hex: (data.key?("checksum_sha256_hex") ? data["checksum_sha256_hex"] : ::Pago::UNSET), last_modified_at: (data.key?("last_modified_at") ? data["last_modified_at"] : ::Pago::UNSET), version: (data.key?("version") ? data["version"] : ::Pago::UNSET), service: (data.key?("service") ? data["service"] : ::Pago::UNSET), is_uploaded: (data.key?("is_uploaded") ? data["is_uploaded"] : ::Pago::UNSET), created_at: (data.key?("created_at") ? data["created_at"] : ::Pago::UNSET), size_readable: (data.key?("size_readable") ? data["size_readable"] : ::Pago::UNSET), public_url: (data.key?("public_url") ? data["public_url"] : ::Pago::UNSET) ), data ) end |