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.
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/context_dev/models/batch_list_response.rb', line 290 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.
295 |
# File 'lib/context_dev/models/batch_list_response.rb', line 295 required :bytes, Integer |
#items ⇒ Integer
Results in this file.
301 |
# File 'lib/context_dev/models/batch_list_response.rb', line 301 required :items, Integer |
#url ⇒ String
Temporary URL for a gzipped NDJSON file.
307 |
# File 'lib/context_dev/models/batch_list_response.rb', line 307 required :url, String |
Instance Method Details
#to_hash ⇒ { bytes: Integer, items: Integer, url: String }
233 |
# File 'sig/context_dev/models/batch_list_response.rbs', line 233
def to_hash: -> { bytes: Integer, items: Integer, url: String }
|