Class: ObsidianFetch::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/obsidian_fetch/logic.rb

Overview

ツール呼び出しの結果を保持する

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



5
6
7
# File 'lib/obsidian_fetch/logic.rb', line 5

def error
  @error
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



5
6
7
# File 'lib/obsidian_fetch/logic.rb', line 5

def text
  @text
end