Class: Airflow::Client::ResultWrapper
- Inherits:
-
Object
- Object
- Airflow::Client::ResultWrapper
- Extended by:
- Forwardable
- Defined in:
- lib/async_flow/client.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#workflow_id ⇒ Object
readonly
Returns the value of attribute workflow_id.
Instance Method Summary collapse
-
#initialize(client, workflow_id) ⇒ ResultWrapper
constructor
A new instance of ResultWrapper.
- #result ⇒ Object
- #workflow_info ⇒ Object
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
13 14 15 |
# File 'lib/async_flow/client.rb', line 13 def client @client end |
#workflow_id ⇒ Object (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
#result ⇒ Object
24 25 26 |
# File 'lib/async_flow/client.rb', line 24 def result @client.result(@workflow_id) end |
#workflow_info ⇒ Object
20 21 22 |
# File 'lib/async_flow/client.rb', line 20 def workflow_info @client.workflow_info(@workflow_id) end |