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