Class: Mindee::Parsing::Standard::BooleanField

Inherits:
Field show all
Defined in:
lib/mindee/parsing/standard/boolean_field.rb

Overview

Represents basic text information.

Instance Attribute Summary collapse

Attributes inherited from Field

#reconstructed

Attributes inherited from AbstractField

#bounding_box, #confidence, #page_id, #polygon

Instance Method Summary collapse

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

#valueBoolean? (readonly)

Value as Boolean

Returns:

  • (Boolean, nil)


12
13
14
# File 'lib/mindee/parsing/standard/boolean_field.rb', line 12

def value
  @value
end