Class: AskChatgpt::Prompts::Base
- Inherits:
-
Object
- Object
- AskChatgpt::Prompts::Base
- Defined in:
- lib/ask_chatgpt/prompts/base.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(record = nil) ⇒ Base
constructor
A new instance of Base.
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
#record ⇒ Object (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
#content ⇒ Object
10 11 12 |
# File 'lib/ask_chatgpt/prompts/base.rb', line 10 def content record end |