Module: HTTPX::ErrorResponsePatternMatchExtensions

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

Instance Method Summary collapse

Instance Method Details

#deconstructObject



15
16
17
# File 'lib/httpx/pmatch_extensions.rb', line 15

def deconstruct
  [@error]
end

#deconstruct_keys(_keys) ⇒ Object



19
20
21
# File 'lib/httpx/pmatch_extensions.rb', line 19

def deconstruct_keys(_keys)
  { error: @error }
end