struct Bus::Message
- Bus::Message
- Struct
- Value
- Object
Defined in:
bus/message.crConstructors
- .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)
- .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)
- .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)
- .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)
Instance Method Summary
- #body : Array(String)
- #evaluated : Bool
- #evaluated=(evaluated : Bool)
- #origin : String | Nil
- #parameters : Hash(String, String)
- #pipeline : Pipeline(Message) | Nil
- #pipeline=(pipeline : Pipeline(Message) | Nil)
- #reply(message : Message)
- #reply(body : String = "", parameters : Hash(String, String) = Hash(String, String).new, tags : Array(String) = [] of String)
- #reply(body : Array(String) = [""], parameters : Hash(String, String) = Hash(String, String).new, tags : Array(String) = [] of String)
- #send_evaluation(receiver, relevance = 0, certainty = 0, force = nil, uuid = @uuid)
- #strategy : Strategy
- #tags : Array(String)
- #uuid : CSUUID
Constructor Detail
def self.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)
#
def self.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)
#
def self.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)
#
def self.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)
#
Instance Method Detail
def reply(body : String = "", parameters : Hash(String, String) = Hash(String, String).new, tags : Array(String) = [] of String)
#
def reply(body : Array(String) = [""], parameters : Hash(String, String) = Hash(String, String).new, tags : Array(String) = [] of String)
#