Method: Useless::Doc::Response#initialize

Defined in:
lib/useless/doc/response.rb

#initialize(attrs = {}) ⇒ Response

Returns a new instance of Response.

Parameters:

  • attrs (Hash) (defaults to: {})

    corresponds to the class’s instance attributes.



22
23
24
25
26
# File 'lib/useless/doc/response.rb', line 22

def initialize(attrs = {})
  @statuses = attrs[:statuses]
  @headers  = attrs[:headers]
  @body     = attrs[:body]
end