Module: Mailkube::_JsonTransport

Defined in:
sig/mailkube.rbs

Overview

What a resource needs when the answer is a model rather than a send acknowledgement.

As narrow as _SendTransport, and a separate interface rather than a widening of it, so the emails resource never acquires a dependency on a verb it does not call. It performs the request and hands back the decoded object; naming the model is the resource's job — which is also why this needs no generics, of which Ruby has none.

Instance Method Summary collapse

Instance Method Details

#request_jsonHash[String, untyped]

Parameters:

Returns:

  • (Hash[String, untyped])


29
# File 'sig/mailkube.rbs', line 29

def request_json: (RequestSpec) -> Hash[String, untyped]