Class: Mayak::Http::Decoder::FunctionFromBodyDecoder

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Generic, T::Helpers, T::Sig
Includes:
Mayak::Http::Decoder
Defined in:
lib/mayak/http/decoder.rb

Constant Summary collapse

RequestType =
type_member {{ fixed: ::Mayak::Http::Request }}
RequestEntity =
type_member

Instance Method Summary collapse

Methods included from Mayak::Http::Decoder

decode_body

Instance Method Details

#decode(response) ⇒ Object



66
67
68
# File 'lib/mayak/http/decoder.rb', line 66

def decode(response)
  decoder.call(response.body || "")
end