Class: Retab::WorkflowSnapshotRef

Inherits:
Types::BaseModel show all
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

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) ⇒ 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_timeObject

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_versionObject

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_idObject

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_idObject

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