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
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 211
|
Instance Attribute Details
#content_type ⇒ String?
The MIME content type of the document.
197 |
# File 'lib/modern_treasury/models/document.rb', line 197 optional :content_type, String |
#filename ⇒ String?
The original filename of the document.
203 |
# File 'lib/modern_treasury/models/document.rb', line 203 optional :filename, String |
#size ⇒ Integer?
The size of the document in bytes.
209 |
# File 'lib/modern_treasury/models/document.rb', line 209 optional :size, Integer |