Class: AskChatgpt::Prompts::Base

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

Direct Known Subclasses

App, Custom, Improve, Model, Question, WithCode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record = nil) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/ask_chatgpt/prompts/base.rb', line 6

def initialize(record = nil)
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



4
5
6
# File 'lib/ask_chatgpt/prompts/base.rb', line 4

def record
  @record
end

Instance Method Details

#contentObject



10
11
12
# File 'lib/ask_chatgpt/prompts/base.rb', line 10

def content
  record
end