Class: Kreuzberg::Result::Image
- Inherits:
-
Struct
- Object
- Struct
- Kreuzberg::Result::Image
- Defined in:
- lib/kreuzberg/result.rb
Instance Attribute Summary collapse
-
#bits_per_component ⇒ Object
Returns the value of attribute bits_per_component.
-
#colorspace ⇒ Object
Returns the value of attribute colorspace.
-
#data ⇒ Object
Returns the value of attribute data.
-
#description ⇒ Object
Returns the value of attribute description.
-
#format ⇒ Object
Returns the value of attribute format.
-
#height ⇒ Object
Returns the value of attribute height.
-
#image_index ⇒ Object
Returns the value of attribute image_index.
-
#is_mask ⇒ Object
Returns the value of attribute is_mask.
-
#ocr_result ⇒ Object
Returns the value of attribute ocr_result.
-
#page_number ⇒ Object
Returns the value of attribute page_number.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#bits_per_component ⇒ Object
Returns the value of attribute bits_per_component
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def bits_per_component @bits_per_component end |
#colorspace ⇒ Object
Returns the value of attribute colorspace
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def colorspace @colorspace end |
#data ⇒ Object
Returns the value of attribute data
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def data @data end |
#description ⇒ Object
Returns the value of attribute description
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def description @description end |
#format ⇒ Object
Returns the value of attribute format
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def format @format end |
#height ⇒ Object
Returns the value of attribute height
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def height @height end |
#image_index ⇒ Object
Returns the value of attribute image_index
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def image_index @image_index end |
#is_mask ⇒ Object
Returns the value of attribute is_mask
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def is_mask @is_mask end |
#ocr_result ⇒ Object
Returns the value of attribute ocr_result
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def ocr_result @ocr_result end |
#page_number ⇒ Object
Returns the value of attribute page_number
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def page_number @page_number end |
#width ⇒ Object
Returns the value of attribute width
70 71 72 |
# File 'lib/kreuzberg/result.rb', line 70 def width @width end |
Instance Method Details
#to_h ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/kreuzberg/result.rb', line 84 def to_h { data: data, format: format, image_index: image_index, page_number: page_number, width: width, height: height, colorspace: colorspace, bits_per_component: bits_per_component, is_mask: is_mask, description: description, ocr_result: ocr_result&.to_h } end |