Class: Ad::AgentArchitecture::Dsl::ChildDsl

Inherits:
Object
  • Object
show all
Includes:
DataAccessors
Defined in:
lib/ad/agent_architecture/dsl/child_dsl.rb

Overview

This is the base class for all child DSLs

Direct Known Subclasses

AttributeDsl, PromptDsl, SectionDsl, SettingsDsl, StepDsl

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DataAccessors

#attributes, #get_attribute, #get_prompt, #get_setting, #prompt_content, #prompts, #sections, #setting_value, #settings

Constructor Details

#initialize(workflow_dsl) ⇒ ChildDsl

Returns a new instance of ChildDsl.



11
12
13
# File 'lib/ad/agent_architecture/dsl/child_dsl.rb', line 11

def initialize(workflow_dsl)
  @workflow = workflow_dsl
end

Instance Attribute Details

#workflowObject (readonly)

Returns the value of attribute workflow.



9
10
11
# File 'lib/ad/agent_architecture/dsl/child_dsl.rb', line 9

def workflow
  @workflow
end

Instance Method Details

#dataObject



15
16
17
# File 'lib/ad/agent_architecture/dsl/child_dsl.rb', line 15

def data
  @workflow.data
end