Class: Retab::WorkflowGraphVersionDiff
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowGraphVersionDiff
- Defined in:
- lib/retab/workflows/workflow_graph_version_diff.rb
Constant Summary collapse
- HASH_ATTRS =
{ from_workflow_version_id: :from_workflow_version_id, to_workflow_version_id: :to_workflow_version_id, added_block_ids: :added_block_ids, removed_block_ids: :removed_block_ids, changed_block_ids: :changed_block_ids, added_edge_ids: :added_edge_ids, removed_edge_ids: :removed_edge_ids, changed_edge_ids: :changed_edge_ids }.freeze
Instance Attribute Summary collapse
-
#added_block_ids ⇒ Object
Returns the value of attribute added_block_ids.
-
#added_edge_ids ⇒ Object
Returns the value of attribute added_edge_ids.
-
#changed_block_ids ⇒ Object
Returns the value of attribute changed_block_ids.
-
#changed_edge_ids ⇒ Object
Returns the value of attribute changed_edge_ids.
-
#from_workflow_version_id ⇒ Object
Returns the value of attribute from_workflow_version_id.
-
#removed_block_ids ⇒ Object
Returns the value of attribute removed_block_ids.
-
#removed_edge_ids ⇒ Object
Returns the value of attribute removed_edge_ids.
-
#to_workflow_version_id ⇒ Object
Returns the value of attribute to_workflow_version_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowGraphVersionDiff
constructor
A new instance of WorkflowGraphVersionDiff.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowGraphVersionDiff
Returns a new instance of WorkflowGraphVersionDiff.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 30 def initialize(json) super() hash = self.class.normalize(json) @from_workflow_version_id = hash[:from_workflow_version_id] @to_workflow_version_id = hash[:to_workflow_version_id] @added_block_ids = (hash[:added_block_ids] || []) @removed_block_ids = (hash[:removed_block_ids] || []) @changed_block_ids = (hash[:changed_block_ids] || []) @added_edge_ids = (hash[:added_edge_ids] || []) @removed_edge_ids = (hash[:removed_edge_ids] || []) @changed_edge_ids = (hash[:changed_edge_ids] || []) end |
Instance Attribute Details
#added_block_ids ⇒ Object
Returns the value of attribute added_block_ids.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def added_block_ids @added_block_ids end |
#added_edge_ids ⇒ Object
Returns the value of attribute added_edge_ids.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def added_edge_ids @added_edge_ids end |
#changed_block_ids ⇒ Object
Returns the value of attribute changed_block_ids.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def changed_block_ids @changed_block_ids end |
#changed_edge_ids ⇒ Object
Returns the value of attribute changed_edge_ids.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def changed_edge_ids @changed_edge_ids end |
#from_workflow_version_id ⇒ Object
Returns the value of attribute from_workflow_version_id.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def from_workflow_version_id @from_workflow_version_id end |
#removed_block_ids ⇒ Object
Returns the value of attribute removed_block_ids.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def removed_block_ids @removed_block_ids end |
#removed_edge_ids ⇒ Object
Returns the value of attribute removed_edge_ids.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def removed_edge_ids @removed_edge_ids end |
#to_workflow_version_id ⇒ Object
Returns the value of attribute to_workflow_version_id.
19 20 21 |
# File 'lib/retab/workflows/workflow_graph_version_diff.rb', line 19 def to_workflow_version_id @to_workflow_version_id end |