Class: ModernTreasury::Models::Document::File
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::Document::File
- Defined in:
- lib/modern_treasury/models/document.rb,
sig/modern_treasury/models/document.rbs
Overview
Instance Attribute Summary collapse
-
#content_type ⇒ String?
The MIME content type of the document.
-
#filename ⇒ String?
The original filename of the document.
-
#size ⇒ Integer?
The size of the document in bytes.
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(content_type: nil, filename: nil, size: nil) ⇒ Object
|
|
# File 'lib/modern_treasury/models/document.rb', line 140
|
Instance Attribute Details
#content_type ⇒ String?
The MIME content type of the document.
126 |
# File 'lib/modern_treasury/models/document.rb', line 126 optional :content_type, String |
#filename ⇒ String?
The original filename of the document.
132 |
# File 'lib/modern_treasury/models/document.rb', line 132 optional :filename, String |
#size ⇒ Integer?
The size of the document in bytes.
138 |
# File 'lib/modern_treasury/models/document.rb', line 138 optional :size, Integer |
Instance Method Details
#to_hash ⇒ {
121 |
# File 'sig/modern_treasury/models/document.rbs', line 121
def to_hash: -> {
|