Class: ObsidianFetch::Result
- Inherits:
-
Struct
- Object
- Struct
- ObsidianFetch::Result
- Defined in:
- lib/obsidian_fetch/logic.rb
Overview
ツール呼び出しの結果を保持する
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, error: false) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(text:, error: false) ⇒ Result
Returns a new instance of Result.
6 7 8 |
# File 'lib/obsidian_fetch/logic.rb', line 6 def initialize(text:, error: false) super(text: text, error: error) end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
5 6 7 |
# File 'lib/obsidian_fetch/logic.rb', line 5 def error @error end |
#text ⇒ Object
Returns the value of attribute text
5 6 7 |
# File 'lib/obsidian_fetch/logic.rb', line 5 def text @text end |