Class: Apifreaks::Types::OcrPredictResponseOcrText
- Inherits:
-
Internal::Types::Model
- Object
- Internal::Types::Model
- Apifreaks::Types::OcrPredictResponseOcrText
- Extended by:
- Internal::Types::Union
- Defined in:
- lib/apifreaks/types/ocr_predict_response_ocr_text.rb
Overview
Array containing extracted text. Structure varies based on input type and new_line parameter:
-
Single file, new_line=0: Array with single string element
-
Single file, new_line=1: Array of strings (one per line)
-
Bulk/ZIP file, new_line=0: Array of strings (one per file)
-
Bulk/ZIP file, new_line=1: Array of arrays (each inner array contains lines for respective file)
Method Summary
Methods included from Internal::Types::Union
coerce, discriminant, load, member, members, type_member?
Methods included from Internal::Types::Type
Methods included from Internal::JSON::Serializable
Methods inherited from Internal::Types::Model
#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h
Constructor Details
This class inherits a constructor from Apifreaks::Internal::Types::Model