Class: Retab::WorkflowDiagnosisStats
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowDiagnosisStats
- Defined in:
- lib/retab/workflows/workflow_diagnosis_stats.rb
Constant Summary collapse
- HASH_ATTRS =
{ total_blocks: :total_blocks, total_edges: :total_edges, block_types: :block_types, start_document_blocks: :start_document_blocks }.freeze
Instance Attribute Summary collapse
-
#block_types ⇒ Object
Returns the value of attribute block_types.
-
#start_document_blocks ⇒ Object
Returns the value of attribute start_document_blocks.
-
#total_blocks ⇒ Object
Returns the value of attribute total_blocks.
-
#total_edges ⇒ Object
Returns the value of attribute total_edges.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowDiagnosisStats
constructor
A new instance of WorkflowDiagnosisStats.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowDiagnosisStats
Returns a new instance of WorkflowDiagnosisStats.
21 22 23 24 25 26 27 |
# File 'lib/retab/workflows/workflow_diagnosis_stats.rb', line 21 def initialize(json) hash = self.class.normalize(json) @total_blocks = hash[:total_blocks] @total_edges = hash[:total_edges] @block_types = hash[:block_types] || {} @start_document_blocks = hash[:start_document_blocks] end |
Instance Attribute Details
#block_types ⇒ Object
Returns the value of attribute block_types.
15 16 17 |
# File 'lib/retab/workflows/workflow_diagnosis_stats.rb', line 15 def block_types @block_types end |
#start_document_blocks ⇒ Object
Returns the value of attribute start_document_blocks.
15 16 17 |
# File 'lib/retab/workflows/workflow_diagnosis_stats.rb', line 15 def start_document_blocks @start_document_blocks end |
#total_blocks ⇒ Object
Returns the value of attribute total_blocks.
15 16 17 |
# File 'lib/retab/workflows/workflow_diagnosis_stats.rb', line 15 def total_blocks @total_blocks end |
#total_edges ⇒ Object
Returns the value of attribute total_edges.
15 16 17 |
# File 'lib/retab/workflows/workflow_diagnosis_stats.rb', line 15 def total_edges @total_edges end |