module HTTPX::ResponsePatternMatchExtensions

  1. lib/httpx/pmatch_extensions.rb

Methods

Public Instance

  1. deconstruct
  2. deconstruct_keys

Public Instance methods

deconstruct()
[show source]
  # File lib/httpx/pmatch_extensions.rb
5 def deconstruct
6   [@status, @headers, @body]
7 end
deconstruct_keys(_keys)
[show source]
   # File lib/httpx/pmatch_extensions.rb
 9 def deconstruct_keys(_keys)
10   { status: @status, headers: @headers, body: @body }
11 end