Class: Watobo::Gui::HistoryItem

Inherits:
Object
  • Object
show all
Defined in:
lib/watobo/gui/manual_request_editor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chat, raw_request) ⇒ HistoryItem

Returns a new instance of HistoryItem.


38
39
40
41
# File 'lib/watobo/gui/manual_request_editor.rb', line 38

def initialize(chat, raw_request)
   @chat = chat
   @raw_request = raw_request
end

Instance Attribute Details

#raw_requestObject (readonly)

Returns the value of attribute raw_request


28
29
30
# File 'lib/watobo/gui/manual_request_editor.rb', line 28

def raw_request
  @raw_request
end

Instance Method Details

#requestObject


30
31
32
# File 'lib/watobo/gui/manual_request_editor.rb', line 30

def request
  @chat.request
end

#responseObject


34
35
36
# File 'lib/watobo/gui/manual_request_editor.rb', line 34

def response
  @chat.response
end