Class: Retab::StepArtifactRef

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_steps/step_artifact_ref.rb

Constant Summary collapse

HASH_ATTRS =
{
  operation: :operation,
  id: :id
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/retab/workflow_steps/step_artifact_ref.rb', line 13

def id
  @id
end

#operationObject

Returns the value of attribute operation.



13
14
15
# File 'lib/retab/workflow_steps/step_artifact_ref.rb', line 13

def operation
  @operation
end