class ICrystal::Message

Defined in:

icrystal/session.cr

Constant Summary

DELIM = "<IDS|MSG>"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(id : String, header : ICrystal::Message::Header, parent_header : Nil | ICrystal::Message::Header, metadata : Hash(String, Array(Bool | Int64 | String | Nil) | Array(Hash(String, Bool | Int64 | String | Nil)) | Bool | Hash(String, Bool | Int64 | String | Nil) | Int64 | String | Nil), content : Hash(String, Array(Bool | Int64 | String | Nil) | Array(Hash(String, Bool | Int64 | String | Nil)) | Bool | Hash(String, Bool | Int64 | String | Nil) | Int64 | String | Nil)) #

[View source]
def self.new(id : String, header : ICrystal::Message::Header, content : Hash(String, Array(Bool | Int64 | String | Nil) | Array(Hash(String, Bool | Int64 | String | Nil)) | Bool | Hash(String, Bool | Int64 | String | Nil) | Int64 | String | Nil) = Dict.new) #

[View source]

Class Method Detail

def self.deserialize(data) #

[View source]
def self.key : String | Nil #

def self.key=(key : String | Nil) #

[View source]
def self.key? : String | Nil | Nil #

def self.sign(data) #

[View source]

Instance Method Detail

def content : Dict #

[View source]
def content=(content : Dict) #

[View source]
def header : Header #

[View source]
def header=(header : Header) #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def metadata : Hash(String, Array(Bool | Int64 | String | Nil) | Array(Hash(String, Bool | Int64 | String | Nil)) | Bool | Hash(String, Bool | Int64 | String | Nil) | Int64 | String | Nil) #

[View source]
def metadata=(metadata : Hash(String, Array(Bool | Int64 | String | Nil) | Array(Hash(String, Bool | Int64 | String | Nil)) | Bool | Hash(String, Bool | Int64 | String | Nil) | Int64 | String | Nil)) #

[View source]
def parent_header : Header | Nil #

[View source]
def parent_header=(parent_header : Header | Nil) #

[View source]
def serialize #

[View source]