Class: AgentX::History::Entry
- Inherits:
-
Object
- Object
- AgentX::History::Entry
- Defined in:
- lib/agentx/history.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ Entry
constructor
A new instance of Entry.
- #inspect ⇒ Object
Constructor Details
#initialize(request, response) ⇒ Entry
Returns a new instance of Entry.
38 39 40 |
# File 'lib/agentx/history.rb', line 38 def initialize(request, response) @request, @response = request, response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
36 37 38 |
# File 'lib/agentx/history.rb', line 36 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
36 37 38 |
# File 'lib/agentx/history.rb', line 36 def response @response end |
Instance Method Details
#inspect ⇒ Object
42 43 44 |
# File 'lib/agentx/history.rb', line 42 def inspect [request, response].inspect end |