Method: Webmention::Response#initialize

Defined in:
lib/webmention/response.rb

#initialize(response, request) ⇒ Response

Create a new Webmention::Response.

Instances of this class represent completed HTTP requests, the details of which may be accessed using the delegated #code and #reason instance methods.

Parameters:

  • response (HTTP::Response)
  • request (Request)


42
43
44
45
# File 'lib/webmention/response.rb', line 42

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