Class: Inttegro::File::UploadReceipt
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::File::UploadReceipt
- Defined in:
- lib/inttegro/file/upload_receipt.rb
Overview
Typed representation of the upload receipt 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
-
#content_type ⇒ String
readonly
Value of the
content_typefield in the Inttegro API payload. -
#created_at ⇒ Time
readonly
Value of the
created_atfield in the Inttegro API payload. -
#filename ⇒ String?
readonly
Value of the
filenamefield in the Inttegro API payload. -
#id ⇒ String
readonly
Value of the
idfield in the Inttegro API payload. -
#name ⇒ String?
readonly
Value of the
namefield in the Inttegro API payload. -
#size ⇒ Integer
readonly
Value of the
sizefield in the Inttegro API payload. -
#status ⇒ Inttegro::File::Status
readonly
Value of the
statusfield in the Inttegro API payload.
Instance Attribute Details
#content_type ⇒ String (readonly)
Value of the content_type field in the Inttegro API payload.
Required in the API payload. Wire name: content_type.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |
#created_at ⇒ Time (readonly)
Value of the created_at field in the Inttegro API payload.
Required in the API payload. Wire name: created_at.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |
#filename ⇒ String? (readonly)
Value of the filename field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: filename.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |
#id ⇒ String (readonly)
Value of the id field in the Inttegro API payload.
Required in the API payload. Wire name: id.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |
#name ⇒ String? (readonly)
Value of the name field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: name.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |
#size ⇒ Integer (readonly)
Value of the size field in the Inttegro API payload.
Required in the API payload. Wire name: size.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |
#status ⇒ Inttegro::File::Status (readonly)
Value of the status field in the Inttegro API payload.
Required in the API payload. Wire name: status.
60 61 62 63 64 65 66 67 68 |
# File 'lib/inttegro/file/upload_receipt.rb', line 60 class UploadReceipt < T::Struct const :content_type, String const :created_at, Time const :filename, T.nilable(String), default: nil const :id, String const :name, T.nilable(String), default: nil const :size, Integer const :status, Inttegro::File::Status end |