Class: AmazonTRP::SelectionElement

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon-textract-parser-ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#confidenceObject (readonly)

Returns the value of attribute confidence.



134
135
136
# File 'lib/amazon-textract-parser-ruby.rb', line 134

def confidence
  @confidence
end

#geometryObject (readonly)

Returns the value of attribute geometry.



135
136
137
# File 'lib/amazon-textract-parser-ruby.rb', line 135

def geometry
  @geometry
end

#idObject (readonly)

Returns the value of attribute id.



136
137
138
# File 'lib/amazon-textract-parser-ruby.rb', line 136

def id
  @id
end

#selectionStatusObject (readonly)

Returns the value of attribute selectionStatus.



137
138
139
# File 'lib/amazon-textract-parser-ruby.rb', line 137

def selectionStatus
  @selectionStatus
end