Class: ApimaticTestingCalculator::HttpContext

Inherits:
Object
  • Object
show all
Defined in:
lib/apimatic_testing_calculator/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



15
16
17
18
# File 'lib/apimatic_testing_calculator/http/http_context.rb', line 15

def initialize(request, response)
  @request = request
  @response = response
end

Instance Attribute Details

#requestObject

Returns the value of attribute request.



9
10
11
# File 'lib/apimatic_testing_calculator/http/http_context.rb', line 9

def request
  @request
end

#responseObject

Returns the value of attribute response.



9
10
11
# File 'lib/apimatic_testing_calculator/http/http_context.rb', line 9

def response
  @response
end