Class: Copilot::UserInputResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Response to a user input request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#answerObject

Returns the value of attribute answer

Returns:

  • (Object)

    the current value of answer



306
307
308
# File 'lib/copilot/types.rb', line 306

def answer
  @answer
end

#was_freeformObject

Returns the value of attribute was_freeform

Returns:

  • (Object)

    the current value of was_freeform



306
307
308
# File 'lib/copilot/types.rb', line 306

def was_freeform
  @was_freeform
end

Instance Method Details

#to_hObject



307
308
309
# File 'lib/copilot/types.rb', line 307

def to_h
  { answer: answer, wasFreeform: was_freeform }
end