Class: Mindee::Parsing::Standard::StringField
- Inherits:
-
Field
- Object
- AbstractField
- Field
- Mindee::Parsing::Standard::StringField
- Defined in:
- lib/mindee/parsing/standard/string_field.rb
Overview
Represents basic text information.
Instance Attribute Summary collapse
-
#raw_value ⇒ String?
readonly
Value as String.
-
#value ⇒ String?
readonly
Value as String.
Attributes inherited from Field
Attributes inherited from AbstractField
#bounding_box, #confidence, #page_id, #polygon
Instance Method Summary collapse
-
#initialize(prediction, page_id = nil, reconstructed: false) ⇒ StringField
constructor
A new instance of StringField.
Methods inherited from AbstractField
array_confidence, array_sum, float_to_string, #to_s
Constructor Details
#initialize(prediction, page_id = nil, reconstructed: false) ⇒ StringField
Returns a new instance of StringField.
17 18 19 20 |
# File 'lib/mindee/parsing/standard/string_field.rb', line 17 def initialize(prediction, page_id = nil, reconstructed: false) super @raw_value = prediction['raw_value'] end |
Instance Attribute Details
#raw_value ⇒ String? (readonly)
Value as String
15 16 17 |
# File 'lib/mindee/parsing/standard/string_field.rb', line 15 def raw_value @raw_value end |
#value ⇒ String? (readonly)
Value as String
12 13 14 |
# File 'lib/mindee/parsing/standard/string_field.rb', line 12 def value @value end |