struct

Bus::Message

Inherits Struct < Value < Object

Constructors

new(pipeline : Pipeline(Message) | Nil = nil, body : Array(String) = [""], tags : Array(String) = [] of String, parameters : Hash(String, String) = Hash(String, String).new, origin : String | Nil = nil, uuid : CSUUID = CSUUID.new, strategy : Strategy = Strategy::RandomWinner)
Source
new(bus : Bus, body : Array(String) = [""], tags : Array(String) = [] of String, parameters : Hash(String, String) = Hash(String, String).new, origin : String | Nil = nil, uuid : CSUUID = CSUUID.new, strategy : Strategy = Strategy::RandomWinner)
Source
new(body : String, pipeline : Pipeline(Message) | Nil = nil, tags : Array(String) = [] of String, parameters : Hash(String, String) = Hash(String, String).new, origin : String | Nil = nil, uuid : CSUUID = CSUUID.new, strategy : Strategy = Strategy::RandomWinner)
Source
new(bus : Bus, body : String, tags : Array(String) = [] of String, parameters : Hash(String, String) = Hash(String, String).new, origin : String | Nil = nil, uuid : CSUUID = CSUUID.new, strategy : Strategy = Strategy::RandomWinner)
Source

Instance methods

body
Source
evaluated
Source
evaluated=(evaluated : Bool)
Source
origin
Source
parameters
Source
pipeline
Source
pipeline=(pipeline : Pipeline(Message) | Nil)
Source
reply(message : Message)
Source
reply(body : String = "", parameters : Hash(String, String) = Hash(String, String).new, tags : Array(String) = [] of String)
Source
reply(body : Array(String) = [""], parameters : Hash(String, String) = Hash(String, String).new, tags : Array(String) = [] of String)
Source
send_evaluation(receiver, relevance = 0, certainty = 0, force = nil, uuid = @uuid)
Source
strategy
Source
tags
Source
uuid
Source

Nested types