Class: Ad::AgentArchitecture::Report::AgentDataBuilder
- Inherits:
-
Object
- Object
- Ad::AgentArchitecture::Report::AgentDataBuilder
- Defined in:
- lib/ad/agent_architecture/report/agent_data_builder.rb
Overview
This class is responsible for building the agent data for export or visualization
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#workflow_id ⇒ Object
readonly
Returns the value of attribute workflow_id.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(workflow_id) ⇒ AgentDataBuilder
constructor
A new instance of AgentDataBuilder.
Constructor Details
#initialize(workflow_id) ⇒ AgentDataBuilder
Returns a new instance of AgentDataBuilder.
10 11 12 13 |
# File 'lib/ad/agent_architecture/report/agent_data_builder.rb', line 10 def initialize(workflow_id) @workflow_id = workflow_id @data = {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/ad/agent_architecture/report/agent_data_builder.rb', line 8 def data @data end |
#workflow_id ⇒ Object (readonly)
Returns the value of attribute workflow_id.
8 9 10 |
# File 'lib/ad/agent_architecture/report/agent_data_builder.rb', line 8 def workflow_id @workflow_id end |
Instance Method Details
#build ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/ad/agent_architecture/report/agent_data_builder.rb', line 15 def build fetch_workflow fetch_sections fetch_attributes fetch_prompts data end |