module

Spacetime::SATS

Constants

CONNECTION_ID_TAG = "__connection_id__"
IDENTITY_TAG = "__identity__"
OPTION_NONE_TAG = "none"
OPTION_SOME_TAG = "some"
RESULT_ERR_TAG = "err"
RESULT_OK_TAG = "ok"
SCHEDULE_AT_INTERVAL_TAG = "Interval"
SCHEDULE_AT_TIME_TAG = "Time"
TIME_DURATION_TAG = "__time_duration_micros__"
TIMESTAMP_TAG = "__timestamp_micros_since_unix_epoch__"
UUID_TAG = "__uuid__"

Class methods

parse_optional_string(any : JSON::Any | Nil) : String | Nil

Helper to parse SATS-JSON Option<String> ({"some": "foo"} or {"none": []} or plain "foo" / nil).

Source
write_optional_string(json : JSON::Builder, val : String | Nil) : Nil

Helper to write SATS-JSON Option<String> ({"some": "foo"} or {"none": []}).

Source

Nested types