Class: AmazonTRP::SelectionElement
- Inherits:
-
Object
- Object
- AmazonTRP::SelectionElement
- Defined in:
- lib/amazon-textract-parser-ruby.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#geometry ⇒ Object
readonly
Returns the value of attribute geometry.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#selectionStatus ⇒ Object
readonly
Returns the value of attribute selectionStatus.
Instance Method Summary collapse
-
#initialize(block, blockMap) ⇒ SelectionElement
constructor
A new instance of SelectionElement.
Constructor Details
#initialize(block, blockMap) ⇒ SelectionElement
Returns a new instance of SelectionElement.
139 140 141 142 143 144 |
# File 'lib/amazon-textract-parser-ruby.rb', line 139 def initialize(block, blockMap) @confidence = block[:confidence] @geometry = Geometry.new(block[:geometry]) @id = block[:id] @selectionStatus = block[:selection_status] end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
134 135 136 |
# File 'lib/amazon-textract-parser-ruby.rb', line 134 def confidence @confidence end |
#geometry ⇒ Object (readonly)
Returns the value of attribute geometry.
135 136 137 |
# File 'lib/amazon-textract-parser-ruby.rb', line 135 def geometry @geometry end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
136 137 138 |
# File 'lib/amazon-textract-parser-ruby.rb', line 136 def id @id end |
#selectionStatus ⇒ Object (readonly)
Returns the value of attribute selectionStatus.
137 138 139 |
# File 'lib/amazon-textract-parser-ruby.rb', line 137 def selectionStatus @selectionStatus end |