Module: HTTPX::ResponsePatternMatchExtensions

Included in:
Response
Defined in:
lib/httpx/pmatch_extensions.rb

Instance Method Summary collapse

Instance Method Details

#deconstructObject



5
6
7
# File 'lib/httpx/pmatch_extensions.rb', line 5

def deconstruct
  [@status, @headers, @body]
end

#deconstruct_keys(_keys) ⇒ Object



9
10
11
# File 'lib/httpx/pmatch_extensions.rb', line 9

def deconstruct_keys(_keys)
  { status: @status, headers: @headers, body: @body }
end