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