Class: ContextDev::Models::BatchListResponse::Data::Results::File
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::BatchListResponse::Data::Results::File
- Defined in:
- lib/context_dev/models/batch_list_response.rb,
sig/context_dev/models/batch_list_response.rbs
Instance Attribute Summary collapse
-
#bytes ⇒ Integer
Compressed file size in bytes.
-
#items ⇒ Integer
Results in this file.
-
#url ⇒ String
Temporary URL for a gzipped NDJSON file.
Instance Method Summary collapse
-
#initialize(expires_at:, files:) ⇒ Object
constructor
Download links, available once the batch reaches a final status and null before then.
- #to_hash ⇒ { bytes: Integer, items: Integer, url: String }
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(expires_at:, files:) ⇒ Object
Download links, available once the batch reaches a final status and null before then. GET /batch/batch_id/results serves the same records as paginated JSON.
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
# File 'lib/context_dev/models/batch_list_response.rb', line 281 class File < ContextDev::Internal::Type::BaseModel # @!attribute bytes # Compressed file size in bytes. # # @return [Integer] required :bytes, Integer # @!attribute items # Results in this file. # # @return [Integer] required :items, Integer # @!attribute url # Temporary URL for a gzipped NDJSON file. # # @return [String] required :url, String # @!method initialize(bytes:, items:, url:) # @param bytes [Integer] Compressed file size in bytes. # # @param items [Integer] Results in this file. # # @param url [String] Temporary URL for a gzipped NDJSON file. end |
Instance Attribute Details
#bytes ⇒ Integer
Compressed file size in bytes.
286 |
# File 'lib/context_dev/models/batch_list_response.rb', line 286 required :bytes, Integer |
#items ⇒ Integer
Results in this file.
292 |
# File 'lib/context_dev/models/batch_list_response.rb', line 292 required :items, Integer |
#url ⇒ String
Temporary URL for a gzipped NDJSON file.
298 |
# File 'lib/context_dev/models/batch_list_response.rb', line 298 required :url, String |
Instance Method Details
#to_hash ⇒ { bytes: Integer, items: Integer, url: String }
219 |
# File 'sig/context_dev/models/batch_list_response.rbs', line 219
def to_hash: -> { bytes: Integer, items: Integer, url: String }
|