Class: AskChatgpt::Prompts::Model

Inherits:
Base
  • Object
show all
Defined in:
lib/ask_chatgpt/prompts/model.rb

Instance Attribute Summary

Attributes inherited from Base

#record

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from AskChatgpt::Prompts::Base

Instance Method Details

#contentObject



4
5
6
7
8
9
10
11
# File 'lib/ask_chatgpt/prompts/model.rb', line 4

def content
  [
    summary_info,
    schema_info,
    associations_info,
    instructions_info
  ].reject { |v| v.blank? }.join("\n\n")
end