Class: Airflow::Client::ResultWrapper

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/async_flow/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, workflow_id) ⇒ ResultWrapper

Returns a new instance of ResultWrapper.



15
16
17
18
# File 'lib/async_flow/client.rb', line 15

def initialize(client, workflow_id)
  @client = client
  @workflow_id = workflow_id
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



13
14
15
# File 'lib/async_flow/client.rb', line 13

def client
  @client
end

#workflow_idObject (readonly)

Returns the value of attribute workflow_id.



13
14
15
# File 'lib/async_flow/client.rb', line 13

def workflow_id
  @workflow_id
end

Instance Method Details

#resultObject



24
25
26
# File 'lib/async_flow/client.rb', line 24

def result
  @client.result(@workflow_id)
end

#workflow_infoObject



20
21
22
# File 'lib/async_flow/client.rb', line 20

def workflow_info
  @client.workflow_info(@workflow_id)
end