Class: Inttegro::File::PublicStorage

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file/public_storage.rb

Overview

Typed representation of the public storage object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#encoding ⇒ Inttegro::File::StorageEncoding (readonly)

Encoding of the stored representation.

Required in the API payload. Wire name: encoding.



30
31
32
33
# File 'lib/inttegro/file/public_storage.rb', line 30

class PublicStorage < T::Struct
  const :encoding, Inttegro::File::StorageEncoding
  const :stored_size, Integer
end

#stored_size ⇒ Integer (readonly)

Stored byte size after any lossless encoding.

Required in the API payload. Wire name: stored_size.

Returns:

  • (Integer)


30
31
32
33
# File 'lib/inttegro/file/public_storage.rb', line 30

class PublicStorage < T::Struct
  const :encoding, Inttegro::File::StorageEncoding
  const :stored_size, Integer
end