Class: MessageMediaLookups::HttpContext

Inherits:
Object
  • Object
show all
Defined in:
lib/message_media_lookups/http/http_context.rb

Overview

Represents an Http call in context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request, response) ⇒ HttpContext

The constructor. response.

Parameters:

  • An (HttpRequest)

    HttpRequest object representing the HTTP request.

  • An (HttpResponse)

    HttpResponse object representing the HTTP



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

#requestObject

Returns the value of attribute request.



5
6
7
# File 'lib/message_media_lookups/http/http_context.rb', line 5

def request
  @request
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/message_media_lookups/http/http_context.rb', line 5

def response
  @response
end