Class: Retab::WorkflowArtifact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowArtifact
- Defined in:
- lib/retab/workflow_artifacts/workflow_artifact.rb
Constant Summary collapse
- HASH_ATTRS =
{ operation: :operation, id: :id, additionalProperties: :additional_properties }.freeze
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#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) ⇒ WorkflowArtifact
constructor
A new instance of WorkflowArtifact.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowArtifact
Returns a new instance of WorkflowArtifact.
20 21 22 23 24 25 26 |
# File 'lib/retab/workflow_artifacts/workflow_artifact.rb', line 20 def initialize(json) super() hash = self.class.normalize(json) @operation = hash[:operation] @id = hash[:id] @additional_properties = hash[:additionalProperties] || {} end |
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
14 15 16 |
# File 'lib/retab/workflow_artifacts/workflow_artifact.rb', line 14 def additional_properties @additional_properties end |
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/retab/workflow_artifacts/workflow_artifact.rb', line 14 def id @id end |
#operation ⇒ Object
Returns the value of attribute operation.
14 15 16 |
# File 'lib/retab/workflow_artifacts/workflow_artifact.rb', line 14 def operation @operation end |