Class: Airflow::Workflow::Info

Inherits:
Struct
  • Object
show all
Defined in:
lib/async_flow/workflow.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#queueObject

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



50
51
52
# File 'lib/async_flow/workflow.rb', line 50

def queue
  @queue
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



50
51
52
# File 'lib/async_flow/workflow.rb', line 50

def status
  @status
end

#workflow_idObject

Returns the value of attribute workflow_id

Returns:

  • (Object)

    the current value of workflow_id



50
51
52
# File 'lib/async_flow/workflow.rb', line 50

def workflow_id
  @workflow_id
end

#workflow_nameObject

Returns the value of attribute workflow_name

Returns:

  • (Object)

    the current value of workflow_name



50
51
52
# File 'lib/async_flow/workflow.rb', line 50

def workflow_name
  @workflow_name
end

Class Method Details

.from(workflow) ⇒ Object



51
52
53
54
55
56
57
# File 'lib/async_flow/workflow.rb', line 51

def self.from(workflow)
  new(
    workflow_name: workflow.workflow_name,
    workflow_id: workflow.id,
    status: workflow.status
  )
end