Class: Mindee::Parsing::Standard::BooleanField
- Inherits:
-
Field
- Object
- AbstractField
- Field
- Mindee::Parsing::Standard::BooleanField
- Defined in:
- lib/mindee/parsing/standard/boolean_field.rb
Overview
Represents basic text information.
Instance Attribute Summary collapse
-
#value ⇒ Boolean?
readonly
Value as Boolean.
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) ⇒ BooleanField
constructor
A new instance of BooleanField.
Methods inherited from AbstractField
array_confidence, array_sum, float_to_string, #to_s
Constructor Details
#initialize(prediction, page_id = nil, reconstructed: false) ⇒ BooleanField
Returns a new instance of BooleanField.
14 15 16 |
# File 'lib/mindee/parsing/standard/boolean_field.rb', line 14 def initialize(prediction, page_id = nil, reconstructed: false) super end |
Instance Attribute Details
#value ⇒ Boolean? (readonly)
Value as Boolean
12 13 14 |
# File 'lib/mindee/parsing/standard/boolean_field.rb', line 12 def value @value end |