Class: Watobo::Gui::HistoryItem
- Inherits:
-
Object
- Object
- Watobo::Gui::HistoryItem
- Defined in:
- lib/watobo/gui/manual_request_editor.rb
Instance Attribute Summary collapse
-
#raw_request ⇒ Object
readonly
Returns the value of attribute raw_request.
Instance Method Summary collapse
-
#initialize(chat, raw_request) ⇒ HistoryItem
constructor
A new instance of HistoryItem.
- #request ⇒ Object
- #response ⇒ Object
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_request ⇒ Object (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
#request ⇒ Object
30 31 32 |
# File 'lib/watobo/gui/manual_request_editor.rb', line 30 def request @chat.request end |
#response ⇒ Object
34 35 36 |
# File 'lib/watobo/gui/manual_request_editor.rb', line 34 def response @chat.response end |