struct

Obsctl::IPC::Response

Inherits Struct < Value < Object

Command response correlated to a client request by request ID.

Constants

TYPE = "response"

Constructors

new(id : String, ok : Bool, result : JSON::Any | Nil = nil, error : ErrorPayload | Nil = nil)
Source

Instance methods

clone
Source
copy_with(id _id = @id, ok _ok = @ok, result _result = @result, error _error = @error)
Source
error
id
ok
result
to_json(json : JSON::Builder) : Nil

Writes the wire-format JSON object for this response.

Source