Class: MessageMediaLookups::HttpContext
- Inherits:
-
Object
- Object
- MessageMediaLookups::HttpContext
- Defined in:
- lib/message_media_lookups/http/http_context.rb
Overview
Represents an Http call in context.
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ HttpContext
constructor
The constructor.
Constructor Details
#initialize(request, response) ⇒ HttpContext
The constructor. response.
11 12 13 14 |
# File 'lib/message_media_lookups/http/http_context.rb', line 11 def initialize(request, response) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
5 6 7 |
# File 'lib/message_media_lookups/http/http_context.rb', line 5 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/message_media_lookups/http/http_context.rb', line 5 def response @response end |