Class: Copilot::SystemMessageCustomizeConfig
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SystemMessageCustomizeConfig
- Defined in:
- lib/copilot/types.rb
Overview
System message in customize mode - section-level overrides.
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
255 256 257 |
# File 'lib/copilot/types.rb', line 255 def content @content end |
#sections ⇒ Object
Returns the value of attribute sections
255 256 257 |
# File 'lib/copilot/types.rb', line 255 def sections @sections end |
Instance Method Details
#to_h ⇒ Object
256 257 258 259 260 261 262 263 |
# File 'lib/copilot/types.rb', line 256 def to_h h = { mode: "customize" } if sections h[:sections] = sections.transform_values(&:to_h) end h[:content] = content if content h end |