Class: HttpFake::RequestLog::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/httpfake/request_log.rb

Overview

Use http_method instead of method to avoid overriding Struct#method.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



8
9
10
# File 'lib/httpfake/request_log.rb', line 8

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



8
9
10
# File 'lib/httpfake/request_log.rb', line 8

def headers
  @headers
end

#http_methodObject

Returns the value of attribute http_method

Returns:

  • (Object)

    the current value of http_method



8
9
10
# File 'lib/httpfake/request_log.rb', line 8

def http_method
  @http_method
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



8
9
10
# File 'lib/httpfake/request_log.rb', line 8

def path
  @path
end

#query_paramsObject

Returns the value of attribute query_params

Returns:

  • (Object)

    the current value of query_params



8
9
10
# File 'lib/httpfake/request_log.rb', line 8

def query_params
  @query_params
end