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



178
179
180
# File 'lib/copilot/types.rb', line 178

def answer
  @answer
end

#was_freeformObject

Returns the value of attribute was_freeform

Returns:

  • (Object)

    the current value of was_freeform



178
179
180
# File 'lib/copilot/types.rb', line 178

def was_freeform
  @was_freeform
end

Instance Method Details

#to_hObject



179
180
181
# File 'lib/copilot/types.rb', line 179

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