Class: Retab::StepArtifactRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::StepArtifactRef
- Defined in:
- lib/retab/workflow_steps/step_artifact_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ operation: :operation, id: :id }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#operation ⇒ Object
Returns the value of attribute operation.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ StepArtifactRef
constructor
A new instance of StepArtifactRef.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ StepArtifactRef
Returns a new instance of StepArtifactRef.
17 18 19 20 21 |
# File 'lib/retab/workflow_steps/step_artifact_ref.rb', line 17 def initialize(json) hash = self.class.normalize(json) @operation = hash[:operation] @id = hash[:id] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/retab/workflow_steps/step_artifact_ref.rb', line 13 def id @id end |
#operation ⇒ Object
Returns the value of attribute operation.
13 14 15 |
# File 'lib/retab/workflow_steps/step_artifact_ref.rb', line 13 def operation @operation end |