Class: Retab::ReconciliationField
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ReconciliationField
- Defined in:
- lib/retab/consensus/reconciliation_field.rb
Constant Summary collapse
- HASH_ATTRS =
{ likelihood: :likelihood, path: :path, supporting_input_count: :supporting_input_count, total_input_count: :total_input_count, value: :value }.freeze
Instance Attribute Summary collapse
-
#likelihood ⇒ Object
Returns the value of attribute likelihood.
-
#path ⇒ Object
Returns the value of attribute path.
-
#supporting_input_count ⇒ Object
Returns the value of attribute supporting_input_count.
-
#total_input_count ⇒ Object
Returns the value of attribute total_input_count.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReconciliationField
constructor
A new instance of ReconciliationField.
Constructor Details
#initialize(json) ⇒ ReconciliationField
Returns a new instance of ReconciliationField.
24 25 26 27 28 29 30 31 32 |
# File 'lib/retab/consensus/reconciliation_field.rb', line 24 def initialize(json) super() hash = self.class.normalize(json) @likelihood = hash[:likelihood] @path = hash[:path] @supporting_input_count = hash[:supporting_input_count] @total_input_count = hash[:total_input_count] @value = hash[:value] end |
Instance Attribute Details
#likelihood ⇒ Object
Returns the value of attribute likelihood.
16 17 18 |
# File 'lib/retab/consensus/reconciliation_field.rb', line 16 def likelihood @likelihood end |
#path ⇒ Object
Returns the value of attribute path.
16 17 18 |
# File 'lib/retab/consensus/reconciliation_field.rb', line 16 def path @path end |
#supporting_input_count ⇒ Object
Returns the value of attribute supporting_input_count.
16 17 18 |
# File 'lib/retab/consensus/reconciliation_field.rb', line 16 def supporting_input_count @supporting_input_count end |
#total_input_count ⇒ Object
Returns the value of attribute total_input_count.
16 17 18 |
# File 'lib/retab/consensus/reconciliation_field.rb', line 16 def total_input_count @total_input_count end |
#value ⇒ Object
Returns the value of attribute value.
16 17 18 |
# File 'lib/retab/consensus/reconciliation_field.rb', line 16 def value @value end |