diff --git a/docs/Caridina.html b/docs/Caridina.html index 28c4328..45d9d5f 100644 --- a/docs/Caridina.html +++ b/docs/Caridina.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ -
"0.10.1"
+ VERSION = "0.10.2"
Caridina::Events::Message::Text
Represents a m.room.message event's content of type m.text.
Represents a m.room.message event's content of type m.text.
Represents a m.room.message event's content of type m.text.
-Represents a m.room.message event's content of type m.text.
+JSON::Serializable::use_json_discriminator
on steroids.
A Matrix connection.
","class_methods":[{"id":"login(hs_url:String,user_id:String,password:String):String-class-method","html_id":"login(hs_url:String,user_id:String,password:String):String-class-method","name":"login","doc":"Logs in using to a given homeserver and returns the access token.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login)","summary":"Logs in using to a given homeserver and returns the access token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"args_string":"(hs_url : String, user_id : String, password : String) : String","args_html":"(hs_url : String, user_id : String, password : String) : String","location":{"filename":"src/caridina/connection.cr","line_number":49,"url":null},"def":{"name":"login","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"data = {type: \"m.login.password\", identifier: {type: \"m.id.user\", user: user_id}, password: password}\nresponse = HTTP::Client.post(\"#{hs_url}/_matrix/client/r0/login\", headers: HTTP::Headers {\"Content-Type\" => \"application/json\"}, body: data.to_json)\nif !response.success?\n raise(Exception.new(\"Error with status_code #{response.status_code}\"))\nend\ndata = Hash(String, String).from_json(response.body)\ndata[\"access_token\"]\n"}}],"constructors":[{"id":"new(hs_url:String,access_token:String)-class-method","html_id":"new(hs_url:String,access_token:String)-class-method","name":"new","doc":"Create a new connection object using an access_token.","summary":"Create a new connection object using an access_token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"args_string":"(hs_url : String, access_token : String)","args_html":"(hs_url : String, access_token : String)","location":{"filename":"src/caridina/connection.cr","line_number":73,"url":null},"def":{"name":"new","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(hs_url, access_token)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"create_filter(filter):String-instance-method","html_id":"create_filter(filter):String-instance-method","name":"create_filter","doc":"Creates a sync filter and returns its id.\n\nThe *filter* parameter must be a JSON serializable object.\n\nTODO: This should be implement with a proper model object.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-user-userid-filter)","summary":"Creates a sync filter and returns its id.
","abstract":false,"args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"args_string":"(filter) : String","args_html":"(filter) : String","location":{"filename":"src/caridina/connection.cr","line_number":90,"url":null},"def":{"name":"create_filter","args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = post(\"/user/#{@user_id}/filter\", filter)\nresponse = Responses::Filter.from_json(response)\nresponse.filter_id\n"}},{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":"Edits a message.\n\nOnly `m.text` messages are supported for now.","summary":"Edits a message.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":106,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"tx_id = get_tx_id\ndata = Events::Message::MSC2676::Text.new(message, html, event_id)\nput(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", data)\n"}},{"id":"join(room_id):Nil-instance-method","html_id":"join(room_id):Nil-instance-method","name":"join","doc":"Joins a room.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-join)","summary":"Joins a room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"args_string":"(room_id) : Nil","args_html":"(room_id) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":99,"url":null},"def":{"name":"join","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/join\")"}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":"Sends a message to a given room.\n\nOnly `m.text` messages are supported for now.","summary":"Sends a message to a given room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":115,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"tx_id = get_tx_id\npayload = Events::Message::Text.new(message, html)\ndata = put(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", payload)\n(Responses::Send.from_json(data)).event_id\n"}},{"id":"sync(channel:Channel(Responses::Sync))-instance-method","html_id":"sync(channel:Channel(Responses::Sync))-instance-method","name":"sync","doc":"Starts syncing.\n\nThis method starts a new fiber wich will run sync queries, and send received\nevents in *channel*.\n\nIt uses a filter to limit the received events to supported ones.\n\nWhen called, it will first do an inital sync.\nThis first sync may return events you already seen in a previous sync.\nYou should handle this in your code, either by skipping the first sync or\nby storing the id of the events you processed.\n\nTODO: accept an *next_batch* parameter to skip the initial sync.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-sync)","summary":"Starts syncing.
","abstract":false,"args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"args_string":"(channel : Channel(Responses::Sync))","args_html":"(channel : Channel(Responses::Sync))","location":{"filename":"src/caridina/connection.cr","line_number":138,"url":null},"def":{"name":"sync","args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"if @syncing\n raise(Exception.new(\"Already syncing\"))\nend\nfilter = {account_data: {types: [] of String}, presence: {types: [] of String}, room: {account_data: {types: [] of String}, ephemeral: {types: [] of String}, timeline: {lazy_load_members: true}, state: {lazy_load_members: true}}}\nfilter_id = create_filter(filter)\nspawn do\n next_batch = nil\n loop do\n begin\n if next_batch.nil?\n response = get(\"/sync\", is_sync: true, filter: filter_id)\n else\n response = get(\"/sync\", is_sync: true, filter: filter_id, since: next_batch, timeout: 300000)\n end\n rescue ex : ExecError\n Log.error(exception: ex) do\n \"Error while syncing, waiting 10s before retry\"\n end\n sleep(10)\n next\n end\n sync = Responses::Sync.from_json(response)\n next_batch = sync.next_batch\n channel.send(sync)\n end\nend\n"}},{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":"Returns the connected account's user_id.","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":44,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}},{"id":"whoami:String-instance-method","html_id":"whoami:String-instance-method","name":"whoami","doc":"Returns the connected account's user_id.\n\nYou probably should use `user_id` which already store that information.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-account-whoami)","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":186,"url":null},"def":{"name":"whoami","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = get(\"/account/whoami\")\nresponse = Responses::WhoAmI.from_json(response)\nresponse.user_id\n"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/ConnectionInterface","path":"Caridina/ConnectionInterface.html","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"Interface that represents a Matrix connection.","summary":"Interface that represents a Matrix connection.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":15,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":""}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":16,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":""}}],"macros":[],"types":[{"html_id":"caridina/Caridina/ConnectionInterface/ExecError","path":"Caridina/ConnectionInterface/ExecError.html","kind":"class","full_name":"Caridina::ConnectionInterface::ExecError","name":"ExecError","abstract":false,"superclass":{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/ConnectionInterface","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Errors","path":"Caridina/Errors.html","kind":"module","full_name":"Caridina::Errors","name":"Errors","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Errors/RateLimited","path":"Caridina/Errors/RateLimited.html","kind":"struct","full_name":"Caridina::Errors::RateLimited","name":"RateLimited","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Errors","kind":"module","full_name":"Caridina::Errors","name":"Errors"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(payload)-class-method","html_id":"new(payload)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"args_string":"(payload)","args_html":"(payload)","location":{"filename":"src/caridina/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(payload)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"retry_after_ms:Int32-instance-method","html_id":"retry_after_ms:Int32-instance-method","name":"retry_after_ms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int32","args_html":" : Int32","location":{"filename":"src/caridina/errors.cr","line_number":4,"url":null},"def":{"name":"retry_after_ms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int32","visibility":"Public","body":"@retry_after_ms"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events","path":"Caridina/Events.html","kind":"module","full_name":"Caridina::Events","name":"Events","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[{"id":"make_content(*fields)-macro","html_id":"make_content(*fields)-macro","name":"make_content","doc":null,"summary":null,"abstract":false,"args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(*fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":241,"url":null},"def":{"name":"make_content","args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":0,"block_arg":null,"visibility":"Public","body":" class Content\n include JSON::Serializable\n\n Caridina::Events.make_relates_to\n\n \n{% for field in fields %}\n getter {{ field.id }}\n {% end %}\n\n \nend\n\n getter content : Content\n \n"}},{"id":"make_redacted(name,type,fields,superclass)-macro","html_id":"make_redacted(name,type,fields,superclass)-macro","name":"make_redacted","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"args_string":"(name, type, fields, superclass)","location":{"filename":"src/caridina/events/macros.cr","line_number":255,"url":null},"def":{"name":"make_redacted","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n{% redaction_allowed_fields = {\"event_id\", \"type\", \"room_id\", \"sender\", \"state_key\", \"content\", \"hashes\", \"signatures\", \"depth\", \"prev_events\", \"prev_state\", \"auth_events\", \"origin\", \"origin_server_ts\", \"membership\"} %}\n\n\n class Redacted\n{{ name.id }}\n < \n{{ superclass }}\n\n struct Content\n include JSON::Serializable\n include JSON::Serializable::Strict\n\n \n{% if type == \"m.room.member\" %}\n getter membership : Member::Membership\n {% else %}{% if type == \"m.room.create\" %}\n getter creator : String\n {% else %}{% if type == \"m.room.join_rules\" %}\n getter join_rule : JoinRules::JoinRule\n {% else %}{% if type == \"m.room.power_levels\" %}\n getter ban = 50_u8\n getter events = Hash(String, UInt8).new\n getter events_default = 0_u8\n getter kick = 50_u8\n getter redact = 50_u8\n getter states_default = 50_u8\n getter users = Hash(String, UInt8).new\n getter users_default = 0_i8\n {% end %}{% end %}{% end %}{% end %}\n\n \nend\n\n\n \n{% for field in fields %}\n {% if field.is_a?(TypeDeclaration) %}\n {% name = field.var %}\n {% else %}{% if field.is_a?(Assign) %}\n {% name = field.target %}\n {% else %}\n {% raise(\"Unhandled field #{field}\") %}\n {% end %}{% end %}\n\n {% if redaction_allowed_fields.includes?(name.stringify) %}\n getter {{ field.id }}\n {% end %}\n {% end %}\n\n\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_relates_to-macro","html_id":"make_relates_to-macro","name":"make_relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":211,"url":null},"def":{"name":"make_relates_to","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n# Represents a relation to another event.\n\n \n#\n\n \n# [Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)\n\n struct RelatesTo\n include JSON::Serializable\n\n getter rel_type : String?\n getter \nevent_id : String?\n\n def initialize(@rel_type, @event_id)\n \nend\n \nend\n\n \n# This implements MSC2674 (event relationships).\n\n \n#\n\n \n# [Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2674)\n\n @[JSON::Field(key: \"m.relates_to\")]\n getter relates_to : RelatesTo?\n \n"}},{"id":"make_room_event(name,type,*fields,superclass=nil)-macro","html_id":"make_room_event(name,type,*fields,superclass=nil)-macro","name":"make_room_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"args_string":"(name, type, *fields, superclass = nil)","location":{"filename":"src/caridina/events/macros.cr","line_number":322,"url":null},"def":{"name":"make_room_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" @[Type(\n{{ type }}\n)]\n \n{% if !superclass %}\n {% superclass = RoomEvent %}\n {% end %}\n\n class \n{{ name.id }}\n < \n{{ superclass }}\n\n Caridina::Events.make_content(\n{{ *fields }}\n)\n Caridina::Events.make_unsigned_data\n\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n getter unsigned : UnsignedData?\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n\n \n{{ yield }}\n\n \nend\n\n make_redacted(\n{{ name.id }}\n, \n{{ type }}\n, \n{{ fields }}\n, \n{{ superclass }}\n)\n \n"}},{"id":"make_state_event(name,type,*fields)-macro","html_id":"make_state_event(name,type,*fields)-macro","name":"make_state_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(name, type, *fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":346,"url":null},"def":{"name":"make_state_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" Caridina::Events.make_room_event(\n{{ name }}\n, \n{{ type }}\n, \n{{ *fields }}\n, superclass: StateEvent) do\n getter state_key : String\n\n \n{{ yield }}\n\n \nend\n\n class Stripped\n{{ name }}\n < StrippedState\n getter content : \n{{ name.id }}\n::Content\n getter sender : String\n getter state_key : String\n getter type : String\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_unsigned_data-macro","html_id":"make_unsigned_data-macro","name":"make_unsigned_data","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":232,"url":null},"def":{"name":"make_unsigned_data","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" struct UnsignedData\n include JSON::Serializable\n\n getter age : Int64\n getter transaction_id : String?\n \nend\n \n"}}],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","path":"Caridina/Events/CanonicalAlias.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","path":"Caridina/Events/CanonicalAlias/Content.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"alias:String?-instance-method","html_id":"alias:String?-instance-method","name":"alias","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"alias","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@alias"}},{"id":"alt_aliases:Array(String)-instance-method","html_id":"alt_aliases:Array(String)-instance-method","name":"alt_aliases","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)","args_html":" : Array(String)","location":null,"def":{"name":"alt_aliases","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String)","visibility":"Public","body":"@alt_aliases"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content/RelatesTo","path":"Caridina/Events/CanonicalAlias/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/CanonicalAlias/UnsignedData","path":"Caridina/Events/CanonicalAlias/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create","path":"Caridina/Events/Create.html","kind":"class","full_name":"Caridina::Events::Create","name":"Create","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content","path":"Caridina/Events/Create/Content.html","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}},{"id":"m_federate:Bool-instance-method","html_id":"m_federate:Bool-instance-method","name":"m_federate","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool","args_html":" : Bool","location":{"filename":"src/caridina/events/state_events.cr","line_number":67,"url":null},"def":{"name":"m_federate","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@m_federate"}},{"id":"predecessor:PreviousRoom?-instance-method","html_id":"predecessor:PreviousRoom?-instance-method","name":"predecessor","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PreviousRoom?","args_html":" : PreviousRoom?","location":null,"def":{"name":"predecessor","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PreviousRoom | ::Nil","visibility":"Public","body":"@predecessor"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"room_version:String-instance-method","html_id":"room_version:String-instance-method","name":"room_version","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"room_version","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_version"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content/RelatesTo","path":"Caridina/Events/Create/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Create::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create/Content","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create/PreviousRoom","path":"Caridina/Events/Create/PreviousRoom.html","kind":"struct","full_name":"Caridina::Events::Create::PreviousRoom","name":"PreviousRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":59,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":62,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"room_id:String-instance-method","html_id":"room_id:String-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":60,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@room_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Create/UnsignedData","path":"Caridina/Events/Create/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Create::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Event","path":"Caridina/Events/Event.html","kind":"class","full_name":"Caridina::Events::Event","name":"Event","abstract":true,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Unknown","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Base type representing an event.\n\nAll types returned by the `Caridina::Connection::Sync` method will be\nof this type.\nYou can then match the returned event type against known types to be able\nto use all the event's field.\n\nIf the event is unknown, it returns nil.","summary":"Base type representing an event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":17,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n begin\n return CanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.create\"\n begin\n return Create.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCreate.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.join_rules\"\n begin\n return JoinRules.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedJoinRules.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.member\"\n begin\n return Member.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMember.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.power_levels\"\n begin\n return PowerLevels.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedPowerLevels.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.redaction\"\n begin\n return Redaction.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedRedaction.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.message\"\n begin\n return Message.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMessage.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules","path":"Caridina/Events/JoinRules.html","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content","path":"Caridina/Events/JoinRules/Content.html","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRule-instance-method","html_id":"join_rule:JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRule","args_html":" : JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRule","visibility":"Public","body":"@join_rule"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content/RelatesTo","path":"Caridina/Events/JoinRules/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::JoinRules::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules/Content","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/JoinRules/JoinRule","path":"Caridina/Events/JoinRules/JoinRule.html","kind":"enum","full_name":"Caridina::Events::JoinRules::JoinRule","name":"JoinRule","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Public","name":"Public","value":"0","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"1","doc":null,"summary":null},{"id":"Invite","name":"Invite","value":"2","doc":null,"summary":null},{"id":"Private","name":"Private","value":"3","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":82,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":81,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"private?-instance-method","html_id":"private?-instance-method","name":"private?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":83,"url":null},"def":{"name":"private?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Private"}},{"id":"public?-instance-method","html_id":"public?-instance-method","name":"public?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":80,"url":null},"def":{"name":"public?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Public"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules/UnsignedData","path":"Caridina/Events/JoinRules/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::JoinRules::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member","path":"Caridina/Events/Member.html","kind":"class","full_name":"Caridina::Events::Member","name":"Member","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content","path":"Caridina/Events/Member/Content.html","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"avatar_url:String?-instance-method","html_id":"avatar_url:String?-instance-method","name":"avatar_url","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"avatar_url","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@avatar_url"}},{"id":"displayname:String?-instance-method","html_id":"displayname:String?-instance-method","name":"displayname","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"displayname","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@displayname"}},{"id":"is_direct:Bool?-instance-method","html_id":"is_direct:Bool?-instance-method","name":"is_direct","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool?","args_html":" : Bool?","location":null,"def":{"name":"is_direct","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Bool | ::Nil","visibility":"Public","body":"@is_direct"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"third_party_invite:Invite?-instance-method","html_id":"third_party_invite:Invite?-instance-method","name":"third_party_invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Invite?","args_html":" : Invite?","location":null,"def":{"name":"third_party_invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Invite | ::Nil","visibility":"Public","body":"@third_party_invite"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content/RelatesTo","path":"Caridina/Events/Member/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Member::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member/Content","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member/Invite","path":"Caridina/Events/Member/Invite.html","kind":"struct","full_name":"Caridina::Events::Member::Invite","name":"Invite","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":108,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"display_name:String-instance-method","html_id":"display_name:String-instance-method","name":"display_name","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":109,"url":null},"def":{"name":"display_name","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@display_name"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/Membership","path":"Caridina/Events/Member/Membership.html","kind":"enum","full_name":"Caridina::Events::Member::Membership","name":"Membership","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Invite","name":"Invite","value":"0","doc":null,"summary":null},{"id":"Join","name":"Join","value":"1","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"2","doc":null,"summary":null},{"id":"Leave","name":"Leave","value":"3","doc":null,"summary":null},{"id":"Ban","name":"Ban","value":"4","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"ban?-instance-method","html_id":"ban?-instance-method","name":"ban?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":104,"url":null},"def":{"name":"ban?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Ban"}},{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":100,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"join?-instance-method","html_id":"join?-instance-method","name":"join?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":101,"url":null},"def":{"name":"join?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Join"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":102,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"leave?-instance-method","html_id":"leave?-instance-method","name":"leave?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":103,"url":null},"def":{"name":"leave?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Leave"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/UnsignedData","path":"Caridina/Events/Member/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Member::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"invite_room_state:Array(StrippedState)?-instance-method","html_id":"invite_room_state:Array(StrippedState)?-instance-method","name":"invite_room_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(StrippedState)?","args_html":" : Array(StrippedState)?","location":{"filename":"src/caridina/events/state_events.cr","line_number":114,"url":null},"def":{"name":"invite_room_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(StrippedState) | ::Nil","visibility":"Public","body":"@invite_room_state"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message","path":"Caridina/Events/Message.html","kind":"class","full_name":"Caridina::Events::Message","name":"Message","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content","path":"Caridina/Events/Message/Content.html","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Unknown","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content.\n\nThis event's content can have different fields according to its field\n`msgtype`.\nEach available content is represent by its own type.\nTo know which message event you are dealing with, you can use a case clause\nover the content's type.\n\n```\ncase event.content\nwhen Caridina::Events::Message::Text\n # handle a message\nwhen Caridina::Events::Message::MSC2676::Text\n # handle a message edit\nwhen Caridina::Events::Message::Unknown\n # Unknown message type, but you can still inspect `event.content.body` and\n # `event.content.msgtype`.\nelse\n # fallback\nend\n```\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message)","summary":"Represents a m.room.message event's content.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"msgtype\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n when \"m.relates_to\"\n field_name = [\"m.relates_to\"]\n builder.field(key) do\n builder.start_object\n pull.read_object do |key|\n case key\n when \"rel_type\"\n field_name << \"rel_type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {field_name, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"msgtype\", [\"m.relates_to\", \"rel_type\"]]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"msgtype\"\n key = \"\\\"msgtype\\\"\"\n case discriminator_value\n when \"m.text\"\n return Text.from_json(json)\n end\n when [\"m.relates_to\", \"rel_type\"]\n key = \"[\\\"m.relates_to\\\", \\\"rel_type\\\"]\"\n case discriminator_value\n when \"m.replace\"\n return MSC2676::Dispatcher.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[{"id":"body:String-instance-method","html_id":"body:String-instance-method","name":"body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@body"}},{"id":"msgtype:String-instance-method","html_id":"msgtype:String-instance-method","name":"msgtype","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"msgtype","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@msgtype"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content/RelatesTo","path":"Caridina/Events/Message/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Message::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/MSC2676","path":"Caridina/Events/Message/MSC2676.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Implements MSC2676 (message editing).\n\n[Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2676)","summary":"Implements MSC2676 (message editing).
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","path":"Caridina/Events/Message/MSC2676/Content.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"new_content:Events::Message::Content-instance-method","html_id":"new_content:Events::Message::Content-instance-method","name":"new_content","doc":"Returns the content that will replace the previous message's content.\n\nLike a message's content, this new content can vary and you should use\na case clause to know what it is.","summary":"Returns the content that will replace the previous message's content.
","abstract":false,"args":[],"args_string":" : Events::Message::Content","args_html":" : Events::Message::Content","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":82,"url":null},"def":{"name":"new_content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Events::Message::Content","visibility":"Public","body":"@new_content"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","path":"Caridina/Events/Message/MSC2676/Text.html","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"},{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","class_methods":[],"constructors":[{"id":"new(body,formatted_body,event_id)-class-method","html_id":"new(body,formatted_body,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(body, formatted_body, event_id)","args_html":"(body, formatted_body, event_id)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":88,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":86,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/Text","path":"Caridina/Events/Message/Text.html","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":46,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"id":"new(body,formatted_body="org.matrix.custom.html")-class-method","html_id":"new(body,formatted_body="org.matrix.custom.html")-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"formatted_body","restriction":""}],"args_string":"(body, formatted_body = "org.matrix.custom.html")","args_html":"(body, formatted_body = "org.matrix.custom.html")","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":49,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"formatted_body","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"format:String?-instance-method","html_id":"format:String?-instance-method","name":"format","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":47,"url":null},"def":{"name":"format","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@format"}},{"id":"formatted_body:String?-instance-method","html_id":"formatted_body:String?-instance-method","name":"formatted_body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":48,"url":null},"def":{"name":"formatted_body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@formatted_body"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/Unknown","path":"Caridina/Events/Message/Unknown.html","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents an unknown event.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":56,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/UnsignedData","path":"Caridina/Events/Message/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Message::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels","path":"Caridina/Events/PowerLevels.html","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content","path":"Caridina/Events/PowerLevels/Content.html","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"invite:UInt8-instance-method","html_id":"invite:UInt8-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@invite"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"notifications:Notifications?-instance-method","html_id":"notifications:Notifications?-instance-method","name":"notifications","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Notifications?","args_html":" : Notifications?","location":null,"def":{"name":"notifications","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Notifications | ::Nil","visibility":"Public","body":"@notifications"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content/RelatesTo","path":"Caridina/Events/PowerLevels/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels/Content","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels/Notifications","path":"Caridina/Events/PowerLevels/Notifications.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Notifications","name":"Notifications","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":136,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room:UInt8-instance-method","html_id":"room:UInt8-instance-method","name":"room","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":{"filename":"src/caridina/events/state_events.cr","line_number":137,"url":null},"def":{"name":"room","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/PowerLevels/UnsignedData","path":"Caridina/Events/PowerLevels/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","path":"Caridina/Events/RedactedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias/Content","path":"Caridina/Events/RedactedCanonicalAlias/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCreate","path":"Caridina/Events/RedactedCreate.html","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCreate/Content","path":"Caridina/Events/RedactedCreate/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCreate::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","path":"Caridina/Events/RedactedJoinRules.html","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedJoinRules/Content","path":"Caridina/Events/RedactedJoinRules/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedJoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRules::JoinRule-instance-method","html_id":"join_rule:JoinRules::JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::JoinRule","args_html":" : JoinRules::JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::JoinRule","visibility":"Public","body":"@join_rule"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMember","path":"Caridina/Events/RedactedMember.html","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMember/Content","path":"Caridina/Events/RedactedMember/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMember::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMessage","path":"Caridina/Events/RedactedMessage.html","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMessage/Content","path":"Caridina/Events/RedactedMessage/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMessage::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","path":"Caridina/Events/RedactedPowerLevels.html","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedPowerLevels/Content","path":"Caridina/Events/RedactedPowerLevels/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedPowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedRedaction","path":"Caridina/Events/RedactedRedaction.html","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedRedaction/Content","path":"Caridina/Events/RedactedRedaction/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedRedaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction","path":"Caridina/Events/Redaction.html","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content","path":"Caridina/Events/Redaction/Content.html","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"reason:String?-instance-method","html_id":"reason:String?-instance-method","name":"reason","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"reason","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@reason"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content/RelatesTo","path":"Caridina/Events/Redaction/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Redaction::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction/Content","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction/UnsignedData","path":"Caridina/Events/Redaction/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Redaction::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RoomEvent","path":"Caridina/Events/RoomEvent.html","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/room_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StateEvent","path":"Caridina/Events/StateEvent.html","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","path":"Caridina/Events/StrippedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:CanonicalAlias::Content-instance-method","html_id":"content:CanonicalAlias::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : CanonicalAlias::Content","args_html":" : CanonicalAlias::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"CanonicalAlias::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCreate","path":"Caridina/Events/StrippedCreate.html","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Create::Content-instance-method","html_id":"content:Create::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Create::Content","args_html":" : Create::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Create::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","path":"Caridina/Events/StrippedJoinRules.html","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:JoinRules::Content-instance-method","html_id":"content:JoinRules::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::Content","args_html":" : JoinRules::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedMember","path":"Caridina/Events/StrippedMember.html","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Member::Content-instance-method","html_id":"content:Member::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Content","args_html":" : Member::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","path":"Caridina/Events/StrippedPowerLevels.html","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:PowerLevels::Content-instance-method","html_id":"content:PowerLevels::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PowerLevels::Content","args_html":" : PowerLevels::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PowerLevels::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedState","path":"Caridina/Events/StrippedState.html","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/StrippedCreate","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate"},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules"},{"html_id":"caridina/Caridina/Events/StrippedMember","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember"},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels"},{"html_id":"caridina/Caridina/Events/StrippedUnknown","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n return StrippedCanonicalAlias.from_json(json)\n when \"m.room.create\"\n return StrippedCreate.from_json(json)\n when \"m.room.join_rules\"\n return StrippedJoinRules.from_json(json)\n when \"m.room.member\"\n return StrippedMember.from_json(json)\n when \"m.room.power_levels\"\n return StrippedPowerLevels.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nStrippedUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedUnknown","path":"Caridina/Events/StrippedUnknown.html","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":30,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":31,"url":null},"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":32,"url":null},"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":33,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Type","path":"Caridina/Events/Type.html","kind":"annotation","full_name":"Caridina::Events::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Use this annotation to specify the event's type.","summary":"Use this annotation to specify the event's type.
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Unknown","path":"Caridina/Events/Unknown.html","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/base.cr","line_number":37,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Modules","path":"Caridina/Modules.html","kind":"module","full_name":"Caridina::Modules","name":"Modules","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts","path":"Caridina/Modules/Receipts.html","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina/Modules","kind":"module","full_name":"Caridina::Modules","name":"Modules"},"doc":"[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#id53)","summary":"","class_methods":[],"constructors":[],"instance_methods":[{"id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","html_id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","name":"send_receipt","doc":"Sends a receipt.\n\nThe only available type so far is a read receipt.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid)","summary":"Sends a receipt.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"args_string":"(room_id : String, event_id : String, type = Type::Read) : Nil","args_html":"(room_id : String, event_id : String, type = Type::Read) : Nil","location":{"filename":"src/caridina/modules/receipts.cr","line_number":19,"url":null},"def":{"name":"send_receipt","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/receipt/#{type}/#{event_id}\")"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts/Type","path":"Caridina/Modules/Receipts/Type.html","kind":"enum","full_name":"Caridina::Modules::Receipts::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Read","name":"Read","value":"0","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Modules/Receipts","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"read?-instance-method","html_id":"read?-instance-method","name":"read?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/modules/receipts.cr","line_number":4,"url":null},"def":{"name":"read?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Read"}},{"id":"to_s-instance-method","html_id":"to_s-instance-method","name":"to_s","doc":"Returns a `String` representation of this enum member.\nIn the case of regular enums, this is just the name of the member.\nIn the case of flag enums, it's the names joined by vertical bars, or \"None\",\nif the value is zero.\n\nIf an enum's value doesn't match a member's value, the raw value\nis returned as a string.\n\n```\nColor::Red.to_s # => \"Red\"\nIOMode::None.to_s # => \"None\"\n(IOMode::Read | IOMode::Write).to_s # => \"Read | Write\"\n\nColor.new(10).to_s # => \"10\"\n```","summary":"Returns a String
representation of this enum member.
Sends a typing notification
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"args_string":"(room_id : String, timeout = 3000, typing = true) : Nil","args_html":"(room_id : String, timeout = 3000, typing = true) : Nil","location":{"filename":"src/caridina/modules/typing.cr","line_number":5,"url":null},"def":{"name":"send_typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"put(\"/rooms/#{room_id}/typing/#{@user_id}\", data: {typing: typing, timeout: timeout})"}},{"id":"typing(room_id:String,&)-instance-method","html_id":"typing(room_id:String,&)-instance-method","name":"typing","doc":"Keeps sending a typing notification while the block runs.\n\nThe notification is sent every 30 seconds.\nOnce the block ends, it sends a last call to stop the notification typing.","summary":"Keeps sending a typing notification while the block runs.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"args_string":"(room_id : String, &)","args_html":"(room_id : String, &)","location":{"filename":"src/caridina/modules/typing.cr","line_number":19,"url":null},"def":{"name":"typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":null,"return_type":"","visibility":"Public","body":"channel = Channel(Nil).new\nspawn do\n timeout = 30000\n send_typing(room_id, timeout: timeout)\n loop do\n select\nwhen channel.receive?\n send_typing(room_id, typing: false)\n break\nwhen timeout(timeout.milliseconds)\n send_typing(room_id, timeout: timeout)\nend\n\n end\nend\nyield\nchannel.close\n"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses","path":"Caridina/Responses.html","kind":"module","full_name":"Caridina::Responses","name":"Responses","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Filter","path":"Caridina/Responses/Filter.html","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/filter.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"filter_id:String-instance-method","html_id":"filter_id:String-instance-method","name":"filter_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/filter.cr","line_number":5,"url":null},"def":{"name":"filter_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@filter_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Response","path":"Caridina/Responses/Response.html","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response","abstract":true,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Responses/Filter","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter"},{"html_id":"caridina/Caridina/Responses/Send","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send"},{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},{"html_id":"caridina/Caridina/Responses/WhoAmI","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/base.cr","line_number":3,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Send","path":"Caridina/Responses/Send.html","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/send.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/send.cr","line_number":5,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync","path":"Caridina/Responses/Sync.html","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"next_batch:String-instance-method","html_id":"next_batch:String-instance-method","name":"next_batch","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/sync.cr","line_number":38,"url":null},"def":{"name":"next_batch","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@next_batch"}},{"id":"rooms:Rooms?-instance-method","html_id":"rooms:Rooms?-instance-method","name":"rooms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Rooms?","args_html":" : Rooms?","location":{"filename":"src/caridina/responses/sync.cr","line_number":39,"url":null},"def":{"name":"rooms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Rooms | ::Nil","visibility":"Public","body":"@rooms"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Sync/InvitedRoom","path":"Caridina/Responses/Sync/InvitedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::InvitedRoom","name":"InvitedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":27,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite_state:InviteState-instance-method","html_id":"invite_state:InviteState-instance-method","name":"invite_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : InviteState","args_html":" : InviteState","location":{"filename":"src/caridina/responses/sync.cr","line_number":29,"url":null},"def":{"name":"invite_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"InviteState","visibility":"Public","body":"@invite_state"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/InviteState","path":"Caridina/Responses/Sync/InviteState.html","kind":"struct","full_name":"Caridina::Responses::Sync::InviteState","name":"InviteState","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":33,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::StrippedState)-instance-method","html_id":"events:Array(Events::StrippedState)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::StrippedState)","args_html":" : Array(Events::StrippedState)","location":{"filename":"src/caridina/responses/sync.cr","line_number":35,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::StrippedState)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/JoinedRoom","path":"Caridina/Responses/Sync/JoinedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::JoinedRoom","name":"JoinedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"timeline:Timeline-instance-method","html_id":"timeline:Timeline-instance-method","name":"timeline","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Timeline","args_html":" : Timeline","location":{"filename":"src/caridina/responses/sync.cr","line_number":17,"url":null},"def":{"name":"timeline","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Timeline","visibility":"Public","body":"@timeline"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Rooms","path":"Caridina/Responses/Sync/Rooms.html","kind":"struct","full_name":"Caridina::Responses::Sync::Rooms","name":"Rooms","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite:Hash(String,InvitedRoom)-instance-method","html_id":"invite:Hash(String,InvitedRoom)-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, InvitedRoom)","args_html":" : Hash(String, InvitedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":11,"url":null},"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, InvitedRoom)","visibility":"Public","body":"@invite"}},{"id":"join:Hash(String,JoinedRoom)-instance-method","html_id":"join:Hash(String,JoinedRoom)-instance-method","name":"join","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, JoinedRoom)","args_html":" : Hash(String, JoinedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":10,"url":null},"def":{"name":"join","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, JoinedRoom)","visibility":"Public","body":"@join"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Timeline","path":"Caridina/Responses/Sync/Timeline.html","kind":"struct","full_name":"Caridina::Responses::Sync::Timeline","name":"Timeline","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":21,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::Event)-instance-method","html_id":"events:Array(Events::Event)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::Event)","args_html":" : Array(Events::Event)","location":{"filename":"src/caridina/responses/sync.cr","line_number":23,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::Event)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses/WhoAmI","path":"Caridina/Responses/WhoAmI.html","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/whoami.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/whoami.cr","line_number":5,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Syncer","path":"Caridina/Syncer.html","kind":"class","full_name":"Caridina::Syncer","name":"Syncer","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"This object allow you to register listeners to be executed when some events\nare received.\n\nThis avoid you to have to parse the whole `Responses::Sync`.\nHowever `#process_response` must be called with a `Responses::Sync` manually.\nThis allow you to control precisely when you want to handle events.\n\n```\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\nEvents sent to listeners are `Events::Event` objects.\nYou should use a type restriction in order to access all their fields.","summary":"This object allow you to register listeners to be executed when some events are received.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"args_string":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":52,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":{"name":"listener","doc":null,"default_value":"","external_name":"listener","restriction":"EventListener"},"return_type":"Nil","visibility":"Public","body":"on(event_type, source, listener)"}},{"id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"args_string":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":56,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if !listener.nil?\n if !(@listeners.has_key?(event_type))\n @listeners[event_type] = Array(Tuple(EventListener, Source)).new\n end\n @listeners[event_type] << {listener, source}\nend"}},{"id":"process_response(sync:Responses::Sync):Nil-instance-method","html_id":"process_response(sync:Responses::Sync):Nil-instance-method","name":"process_response","doc":null,"summary":null,"abstract":false,"args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"args_string":"(sync : Responses::Sync) : Nil","args_html":"(sync : Responses::Sync) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":32,"url":null},"def":{"name":"process_response","args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if rooms = sync.rooms\n rooms.join.each do |room_id, room|\n room.timeline.events.each do |event|\n if event = event.as?(Events::RoomEvent)\n event.room_id = room_id\n dispatch(event, Source::JoinedRooms)\n end\n end\n end\n rooms.invite.each do |room_id, room|\n room.invite_state.events.each do |event|\n event.room_id = room_id\n dispatch(event, Source::InvitedRooms)\n end\n end\nend"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Syncer/EventListener","path":"Caridina/Syncer/EventListener.html","kind":"alias","full_name":"Caridina::Syncer::EventListener","name":"EventListener","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":true,"aliased":"Proc(Caridina::Events::Event, Caridina::Syncer::Source, Nil)","aliased_html":"Caridina::Events::Event, Caridina::Syncer::Source -> Nil","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Syncer/Source","path":"Caridina/Syncer/Source.html","kind":"enum","full_name":"Caridina::Syncer::Source","name":"Source","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"InvitedRooms","name":"InvitedRooms","value":"1","doc":null,"summary":null},{"id":"JoinedRooms","name":"JoinedRooms","value":"2","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invited_rooms?-instance-method","html_id":"invited_rooms?-instance-method","name":"invited_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":26,"url":null},"def":{"name":"invited_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(InvitedRooms)"}},{"id":"joined_rooms?-instance-method","html_id":"joined_rooms?-instance-method","name":"joined_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":27,"url":null},"def":{"name":"joined_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(JoinedRooms)"}},{"id":"none?-instance-method","html_id":"none?-instance-method","name":"none?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":25,"url":null},"def":{"name":"none?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"value == 0"}}],"macros":[],"types":[]}]}]}]}} \ No newline at end of file +{"repository_name":"caridina","body":"# caridina 🦐\n\nA [Matrix](https://matrix.org) client library written in [Crystal](https://crystal-lang.org).\n\nIt is also a species of shrimp, one of them being named \"crystal red\". Crystal for the language, red for the Matrix's red pill.\n\n\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n ```yaml\n dependencies:\n caridina:\n github: erdnaxeli/caridina\n ```\n\n2. Run `shards install`\n\n## Usage\n\nThe API documentation is available [here](https://erdnaxeli.github.io/caridina/Caridina/Connection.html).\n\n### Connecting\n\nCreate a new connection object:\n\n```crystal\nrequire \"caridina\"\n\nconn = Caridina::Connection.new(\n \"https://my-favorite-hs.example.org\",\n \"my access token\",\n)\n```\n\nYou can also login to get a new access token:\n\n```crystal\naccess_token = Caridina::Connection.login(\n \"https://my-favorite-hs.example.org\",\n \"@mybotuserid:my-favorite-hs.example.org\",\n \"my secret password\",\n)\n```\n\n### Sync\n\nNow we can create a new channel, and tell the connection object to start syncing.\nThe sync responses will be streamed in the channel.\n\n```Crystal\nmatrix = Channel(Caridina::Responses::Sync).new\nconn.sync(matrix)\n\nsync = matrix.receive\n```\n\nYou have now a [sync response](src/response/sync.cr).\n\nIf you don't want to go through the whole sync response by yourself (which is\nunderstandable), we provide you a [Caridina::Syncer](src/syncer.cr) object.\n\n```Crystal\nrequire \"caridina/syncer\"\n\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n event = event.as(Caridina::Events::Message)\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\n> :warning: The syncer is a new feature still in development.\n> It currently only supports events in the joined rooms timeline.\n> To access to other events, you need to go through the sync response.\n\n### Read event\n\nThe events in the sync response are all `Caridina::Events::Event` objects.\nYou need to restrict the type of an event object to access all its fields.\n\n```Crystal\nsync.rooms.try &.join.each do |room_id, room|\n room.timeline.events.each do |event|\n case event\n when Caridina::Events::Member\n # someone's membership changed\n when Caridina::Events::PowerLevels\n # some authorization changed\n when Caridina::Events::Message\n # someone talked\n else\n # unknown event\n end\n end\nend\n```\n\nSometimes the event's content can be polymorphic too.\nThat is especially the case for message events.\nBy using again a `case` clause to `event.content` you can restrict its type to access all its fields.\n\n### Send events\n\nThere is not a single method to send an event.\nInstead this library provides a set of methods that correspond to different\nactions you may want to do.\nYou usually do not need to worry about crafting the event to send.\n\n> :warning: This part is in a early stage.\n> Only a few methods are currently provided.\n\n```Crystal\n# join a room\nconn.join(\"!room_id:matrix.org\")\n# send a message\nevent_id = conn.send_message(\"!room_id:matrix.org\", \"Hello, world!\")\n# edit a message\nconn.edit_message(\"!room_id:matrix.org\", event_id, \"Hello, world!\")\n# send a read receipt\nconn.send_receipt(\"!room_id:matrix.org\", \"$event_id:matrix.org\")\n# Use the typing notification as a loader\nconn.typing(\"!room_id:matrix.org\") do\n # Do some processing.\n # While we are in the block, a typing notification will be shown on the given\n # room.\n conn.send_message(\"!room_id:matrix.org\", \"All done!\")\nend\n```\n\n## Development\n\nInstall the dependencies with `shards install`.\n\n* `make test` runs the tests\n* `make lint` runs the formater plus a linter\n\n## Contributing\n\n1. Fork it (JSON::Serializable::use_json_discriminator
on steroids.
A Matrix connection.
","class_methods":[{"id":"login(hs_url:String,user_id:String,password:String):String-class-method","html_id":"login(hs_url:String,user_id:String,password:String):String-class-method","name":"login","doc":"Logs in using to a given homeserver and returns the access token.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login)","summary":"Logs in using to a given homeserver and returns the access token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"args_string":"(hs_url : String, user_id : String, password : String) : String","args_html":"(hs_url : String, user_id : String, password : String) : String","location":{"filename":"src/caridina/connection.cr","line_number":49,"url":null},"def":{"name":"login","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"data = {type: \"m.login.password\", identifier: {type: \"m.id.user\", user: user_id}, password: password}\nresponse = HTTP::Client.post(\"#{hs_url}/_matrix/client/r0/login\", headers: HTTP::Headers {\"Content-Type\" => \"application/json\"}, body: data.to_json)\nif !response.success?\n raise(Exception.new(\"Error with status_code #{response.status_code}\"))\nend\ndata = Hash(String, String).from_json(response.body)\ndata[\"access_token\"]\n"}}],"constructors":[{"id":"new(hs_url:String,access_token:String)-class-method","html_id":"new(hs_url:String,access_token:String)-class-method","name":"new","doc":"Create a new connection object using an access_token.","summary":"Create a new connection object using an access_token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"args_string":"(hs_url : String, access_token : String)","args_html":"(hs_url : String, access_token : String)","location":{"filename":"src/caridina/connection.cr","line_number":73,"url":null},"def":{"name":"new","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(hs_url, access_token)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"create_filter(filter):String-instance-method","html_id":"create_filter(filter):String-instance-method","name":"create_filter","doc":"Creates a sync filter and returns its id.\n\nThe *filter* parameter must be a JSON serializable object.\n\nTODO: This should be implement with a proper model object.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-user-userid-filter)","summary":"Creates a sync filter and returns its id.
","abstract":false,"args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"args_string":"(filter) : String","args_html":"(filter) : String","location":{"filename":"src/caridina/connection.cr","line_number":90,"url":null},"def":{"name":"create_filter","args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = post(\"/user/#{@user_id}/filter\", filter)\nresponse = Responses::Filter.from_json(response)\nresponse.filter_id\n"}},{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":"Edits a message.\n\nOnly `m.text` messages are supported for now.","summary":"Edits a message.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":106,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"tx_id = get_tx_id\ndata = Events::Message::MSC2676::Text.new(message, html, event_id)\nput(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", data)\n"}},{"id":"join(room_id):Nil-instance-method","html_id":"join(room_id):Nil-instance-method","name":"join","doc":"Joins a room.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-join)","summary":"Joins a room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"args_string":"(room_id) : Nil","args_html":"(room_id) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":99,"url":null},"def":{"name":"join","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/join\")"}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":"Sends a message to a given room.\n\nOnly `m.text` messages are supported for now.","summary":"Sends a message to a given room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":115,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"tx_id = get_tx_id\npayload = Events::Message::Text.new(message, html)\ndata = put(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", payload)\n(Responses::Send.from_json(data)).event_id\n"}},{"id":"sync(channel:Channel(Responses::Sync))-instance-method","html_id":"sync(channel:Channel(Responses::Sync))-instance-method","name":"sync","doc":"Starts syncing.\n\nThis method starts a new fiber wich will run sync queries, and send received\nevents in *channel*.\n\nIt uses a filter to limit the received events to supported ones.\n\nWhen called, it will first do an inital sync.\nThis first sync may return events you already seen in a previous sync.\nYou should handle this in your code, either by skipping the first sync or\nby storing the id of the events you processed.\n\nTODO: accept an *next_batch* parameter to skip the initial sync.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-sync)","summary":"Starts syncing.
","abstract":false,"args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"args_string":"(channel : Channel(Responses::Sync))","args_html":"(channel : Channel(Responses::Sync))","location":{"filename":"src/caridina/connection.cr","line_number":138,"url":null},"def":{"name":"sync","args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"if @syncing\n raise(Exception.new(\"Already syncing\"))\nend\nfilter = {account_data: {types: [] of String}, presence: {types: [] of String}, room: {account_data: {types: [] of String}, ephemeral: {types: [] of String}, timeline: {lazy_load_members: true}, state: {lazy_load_members: true}}}\nfilter_id = create_filter(filter)\nspawn do\n next_batch = nil\n loop do\n begin\n if next_batch.nil?\n response = get(\"/sync\", is_sync: true, filter: filter_id)\n else\n response = get(\"/sync\", is_sync: true, filter: filter_id, since: next_batch, timeout: 300000)\n end\n rescue ex : ExecError\n Log.error(exception: ex) do\n \"Error while syncing, waiting 10s before retry\"\n end\n sleep(10)\n next\n end\n sync = Responses::Sync.from_json(response)\n next_batch = sync.next_batch\n channel.send(sync)\n end\nend\n"}},{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":"Returns the connected account's user_id.","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":44,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}},{"id":"whoami:String-instance-method","html_id":"whoami:String-instance-method","name":"whoami","doc":"Returns the connected account's user_id.\n\nYou probably should use `user_id` which already store that information.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-account-whoami)","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":186,"url":null},"def":{"name":"whoami","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = get(\"/account/whoami\")\nresponse = Responses::WhoAmI.from_json(response)\nresponse.user_id\n"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/ConnectionInterface","path":"Caridina/ConnectionInterface.html","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"Interface that represents a Matrix connection.","summary":"Interface that represents a Matrix connection.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":15,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":""}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":16,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":""}}],"macros":[],"types":[{"html_id":"caridina/Caridina/ConnectionInterface/ExecError","path":"Caridina/ConnectionInterface/ExecError.html","kind":"class","full_name":"Caridina::ConnectionInterface::ExecError","name":"ExecError","abstract":false,"superclass":{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/ConnectionInterface","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Errors","path":"Caridina/Errors.html","kind":"module","full_name":"Caridina::Errors","name":"Errors","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Errors/RateLimited","path":"Caridina/Errors/RateLimited.html","kind":"struct","full_name":"Caridina::Errors::RateLimited","name":"RateLimited","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Errors","kind":"module","full_name":"Caridina::Errors","name":"Errors"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(payload)-class-method","html_id":"new(payload)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"args_string":"(payload)","args_html":"(payload)","location":{"filename":"src/caridina/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(payload)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"retry_after_ms:Int32-instance-method","html_id":"retry_after_ms:Int32-instance-method","name":"retry_after_ms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int32","args_html":" : Int32","location":{"filename":"src/caridina/errors.cr","line_number":4,"url":null},"def":{"name":"retry_after_ms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int32","visibility":"Public","body":"@retry_after_ms"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events","path":"Caridina/Events.html","kind":"module","full_name":"Caridina::Events","name":"Events","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[{"id":"make_content(*fields)-macro","html_id":"make_content(*fields)-macro","name":"make_content","doc":null,"summary":null,"abstract":false,"args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(*fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":241,"url":null},"def":{"name":"make_content","args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":0,"block_arg":null,"visibility":"Public","body":" class Content\n include JSON::Serializable\n\n Caridina::Events.make_relates_to\n\n \n{% for field in fields %}\n getter {{ field.id }}\n {% end %}\n\n \nend\n\n getter content : Content\n \n"}},{"id":"make_redacted(name,type,fields,superclass)-macro","html_id":"make_redacted(name,type,fields,superclass)-macro","name":"make_redacted","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"args_string":"(name, type, fields, superclass)","location":{"filename":"src/caridina/events/macros.cr","line_number":255,"url":null},"def":{"name":"make_redacted","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n{% redaction_allowed_fields = {\"event_id\", \"type\", \"room_id\", \"sender\", \"state_key\", \"content\", \"hashes\", \"signatures\", \"depth\", \"prev_events\", \"prev_state\", \"auth_events\", \"origin\", \"origin_server_ts\", \"membership\"} %}\n\n\n class Redacted\n{{ name.id }}\n < \n{{ superclass }}\n\n struct Content\n include JSON::Serializable\n include JSON::Serializable::Strict\n\n \n{% if type == \"m.room.member\" %}\n getter membership : Member::Membership\n {% else %}{% if type == \"m.room.create\" %}\n getter creator : String\n {% else %}{% if type == \"m.room.join_rules\" %}\n getter join_rule : JoinRules::JoinRule\n {% else %}{% if type == \"m.room.power_levels\" %}\n getter ban = 50_u8\n getter events = Hash(String, UInt8).new\n getter events_default = 0_u8\n getter kick = 50_u8\n getter redact = 50_u8\n getter states_default = 50_u8\n getter users = Hash(String, UInt8).new\n getter users_default = 0_i8\n {% end %}{% end %}{% end %}{% end %}\n\n \nend\n\n\n \n{% for field in fields %}\n {% if field.is_a?(TypeDeclaration) %}\n {% name = field.var %}\n {% else %}{% if field.is_a?(Assign) %}\n {% name = field.target %}\n {% else %}\n {% raise(\"Unhandled field #{field}\") %}\n {% end %}{% end %}\n\n {% if redaction_allowed_fields.includes?(name.stringify) %}\n getter {{ field.id }}\n {% end %}\n {% end %}\n\n\n getter content : Content\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_relates_to-macro","html_id":"make_relates_to-macro","name":"make_relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":211,"url":null},"def":{"name":"make_relates_to","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n# Represents a relation to another event.\n\n \n#\n\n \n# [Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)\n\n struct RelatesTo\n include JSON::Serializable\n\n getter rel_type : String?\n getter \nevent_id : String?\n\n def initialize(@rel_type, @event_id)\n \nend\n \nend\n\n \n# This implements MSC2674 (event relationships).\n\n \n#\n\n \n# [Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2674)\n\n @[JSON::Field(key: \"m.relates_to\")]\n getter relates_to : RelatesTo?\n \n"}},{"id":"make_room_event(name,type,*fields,superclass=nil)-macro","html_id":"make_room_event(name,type,*fields,superclass=nil)-macro","name":"make_room_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"args_string":"(name, type, *fields, superclass = nil)","location":{"filename":"src/caridina/events/macros.cr","line_number":323,"url":null},"def":{"name":"make_room_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" @[Type(\n{{ type }}\n)]\n \n{% if !superclass %}\n {% superclass = RoomEvent %}\n {% end %}\n\n class \n{{ name.id }}\n < \n{{ superclass }}\n\n Caridina::Events.make_content(\n{{ *fields }}\n)\n Caridina::Events.make_unsigned_data\n\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n getter unsigned : UnsignedData?\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n\n \n{{ yield }}\n\n \nend\n\n make_redacted(\n{{ name.id }}\n, \n{{ type }}\n, \n{{ fields }}\n, \n{{ superclass }}\n)\n \n"}},{"id":"make_state_event(name,type,*fields)-macro","html_id":"make_state_event(name,type,*fields)-macro","name":"make_state_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(name, type, *fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":347,"url":null},"def":{"name":"make_state_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" Caridina::Events.make_room_event(\n{{ name }}\n, \n{{ type }}\n, \n{{ *fields }}\n, superclass: StateEvent) do\n getter state_key : String\n\n \n{{ yield }}\n\n \nend\n\n class Stripped\n{{ name }}\n < StrippedState\n getter content : \n{{ name.id }}\n::Content\n getter sender : String\n getter state_key : String\n getter type : String\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_unsigned_data-macro","html_id":"make_unsigned_data-macro","name":"make_unsigned_data","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":232,"url":null},"def":{"name":"make_unsigned_data","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" struct UnsignedData\n include JSON::Serializable\n\n getter age : Int64\n getter transaction_id : String?\n \nend\n \n"}}],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","path":"Caridina/Events/CanonicalAlias.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","path":"Caridina/Events/CanonicalAlias/Content.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"alias:String?-instance-method","html_id":"alias:String?-instance-method","name":"alias","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"alias","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@alias"}},{"id":"alt_aliases:Array(String)-instance-method","html_id":"alt_aliases:Array(String)-instance-method","name":"alt_aliases","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)","args_html":" : Array(String)","location":null,"def":{"name":"alt_aliases","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String)","visibility":"Public","body":"@alt_aliases"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content/RelatesTo","path":"Caridina/Events/CanonicalAlias/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/CanonicalAlias/UnsignedData","path":"Caridina/Events/CanonicalAlias/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create","path":"Caridina/Events/Create.html","kind":"class","full_name":"Caridina::Events::Create","name":"Create","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content","path":"Caridina/Events/Create/Content.html","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}},{"id":"m_federate:Bool-instance-method","html_id":"m_federate:Bool-instance-method","name":"m_federate","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool","args_html":" : Bool","location":{"filename":"src/caridina/events/state_events.cr","line_number":67,"url":null},"def":{"name":"m_federate","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@m_federate"}},{"id":"predecessor:PreviousRoom?-instance-method","html_id":"predecessor:PreviousRoom?-instance-method","name":"predecessor","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PreviousRoom?","args_html":" : PreviousRoom?","location":null,"def":{"name":"predecessor","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PreviousRoom | ::Nil","visibility":"Public","body":"@predecessor"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"room_version:String-instance-method","html_id":"room_version:String-instance-method","name":"room_version","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"room_version","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_version"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content/RelatesTo","path":"Caridina/Events/Create/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Create::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create/Content","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create/PreviousRoom","path":"Caridina/Events/Create/PreviousRoom.html","kind":"struct","full_name":"Caridina::Events::Create::PreviousRoom","name":"PreviousRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":59,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":62,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"room_id:String-instance-method","html_id":"room_id:String-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":60,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@room_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Create/UnsignedData","path":"Caridina/Events/Create/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Create::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Event","path":"Caridina/Events/Event.html","kind":"class","full_name":"Caridina::Events::Event","name":"Event","abstract":true,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Unknown","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Base type representing an event.\n\nAll types returned by the `Caridina::Connection::Sync` method will be\nof this type.\nYou can then match the returned event type against known types to be able\nto use all the event's field.\n\nIf the event is unknown, it returns nil.","summary":"Base type representing an event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":17,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n begin\n return CanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.create\"\n begin\n return Create.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCreate.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.join_rules\"\n begin\n return JoinRules.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedJoinRules.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.member\"\n begin\n return Member.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMember.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.power_levels\"\n begin\n return PowerLevels.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedPowerLevels.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.redaction\"\n begin\n return Redaction.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedRedaction.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.message\"\n begin\n return Message.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMessage.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules","path":"Caridina/Events/JoinRules.html","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content","path":"Caridina/Events/JoinRules/Content.html","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRule-instance-method","html_id":"join_rule:JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRule","args_html":" : JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRule","visibility":"Public","body":"@join_rule"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content/RelatesTo","path":"Caridina/Events/JoinRules/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::JoinRules::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules/Content","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/JoinRules/JoinRule","path":"Caridina/Events/JoinRules/JoinRule.html","kind":"enum","full_name":"Caridina::Events::JoinRules::JoinRule","name":"JoinRule","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Public","name":"Public","value":"0","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"1","doc":null,"summary":null},{"id":"Invite","name":"Invite","value":"2","doc":null,"summary":null},{"id":"Private","name":"Private","value":"3","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":82,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":81,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"private?-instance-method","html_id":"private?-instance-method","name":"private?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":83,"url":null},"def":{"name":"private?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Private"}},{"id":"public?-instance-method","html_id":"public?-instance-method","name":"public?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":80,"url":null},"def":{"name":"public?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Public"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules/UnsignedData","path":"Caridina/Events/JoinRules/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::JoinRules::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member","path":"Caridina/Events/Member.html","kind":"class","full_name":"Caridina::Events::Member","name":"Member","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content","path":"Caridina/Events/Member/Content.html","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"avatar_url:String?-instance-method","html_id":"avatar_url:String?-instance-method","name":"avatar_url","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"avatar_url","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@avatar_url"}},{"id":"displayname:String?-instance-method","html_id":"displayname:String?-instance-method","name":"displayname","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"displayname","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@displayname"}},{"id":"is_direct:Bool?-instance-method","html_id":"is_direct:Bool?-instance-method","name":"is_direct","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool?","args_html":" : Bool?","location":null,"def":{"name":"is_direct","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Bool | ::Nil","visibility":"Public","body":"@is_direct"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"third_party_invite:Invite?-instance-method","html_id":"third_party_invite:Invite?-instance-method","name":"third_party_invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Invite?","args_html":" : Invite?","location":null,"def":{"name":"third_party_invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Invite | ::Nil","visibility":"Public","body":"@third_party_invite"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content/RelatesTo","path":"Caridina/Events/Member/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Member::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member/Content","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member/Invite","path":"Caridina/Events/Member/Invite.html","kind":"struct","full_name":"Caridina::Events::Member::Invite","name":"Invite","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":108,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"display_name:String-instance-method","html_id":"display_name:String-instance-method","name":"display_name","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":109,"url":null},"def":{"name":"display_name","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@display_name"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/Membership","path":"Caridina/Events/Member/Membership.html","kind":"enum","full_name":"Caridina::Events::Member::Membership","name":"Membership","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Invite","name":"Invite","value":"0","doc":null,"summary":null},{"id":"Join","name":"Join","value":"1","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"2","doc":null,"summary":null},{"id":"Leave","name":"Leave","value":"3","doc":null,"summary":null},{"id":"Ban","name":"Ban","value":"4","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"ban?-instance-method","html_id":"ban?-instance-method","name":"ban?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":104,"url":null},"def":{"name":"ban?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Ban"}},{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":100,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"join?-instance-method","html_id":"join?-instance-method","name":"join?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":101,"url":null},"def":{"name":"join?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Join"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":102,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"leave?-instance-method","html_id":"leave?-instance-method","name":"leave?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":103,"url":null},"def":{"name":"leave?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Leave"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/UnsignedData","path":"Caridina/Events/Member/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Member::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"invite_room_state:Array(StrippedState)?-instance-method","html_id":"invite_room_state:Array(StrippedState)?-instance-method","name":"invite_room_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(StrippedState)?","args_html":" : Array(StrippedState)?","location":{"filename":"src/caridina/events/state_events.cr","line_number":114,"url":null},"def":{"name":"invite_room_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(StrippedState) | ::Nil","visibility":"Public","body":"@invite_room_state"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message","path":"Caridina/Events/Message.html","kind":"class","full_name":"Caridina::Events::Message","name":"Message","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content","path":"Caridina/Events/Message/Content.html","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Unknown","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content.\n\nThis event's content can have different fields according to its field\n`msgtype`.\nEach available content is represent by its own type.\nTo know which message event you are dealing with, you can use a case clause\nover the content's type.\n\n```\ncase event.content\nwhen Caridina::Events::Message::Text\n # handle a message\nwhen Caridina::Events::Message::MSC2676::Text\n # handle a message edit\nwhen Caridina::Events::Message::Unknown\n # Unknown message type, but you can still inspect `event.content.body` and\n # `event.content.msgtype`.\nelse\n # fallback\nend\n```\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message)","summary":"Represents a m.room.message event's content.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"msgtype\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n when \"m.relates_to\"\n field_name = [\"m.relates_to\"]\n builder.field(key) do\n builder.start_object\n pull.read_object do |key|\n case key\n when \"rel_type\"\n field_name << \"rel_type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {field_name, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"msgtype\", [\"m.relates_to\", \"rel_type\"]]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"msgtype\"\n key = \"\\\"msgtype\\\"\"\n case discriminator_value\n when \"m.text\"\n return Text.from_json(json)\n end\n when [\"m.relates_to\", \"rel_type\"]\n key = \"[\\\"m.relates_to\\\", \\\"rel_type\\\"]\"\n case discriminator_value\n when \"m.replace\"\n return MSC2676::Dispatcher.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[{"id":"body:String-instance-method","html_id":"body:String-instance-method","name":"body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@body"}},{"id":"msgtype:String-instance-method","html_id":"msgtype:String-instance-method","name":"msgtype","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"msgtype","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@msgtype"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content/RelatesTo","path":"Caridina/Events/Message/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Message::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/MSC2676","path":"Caridina/Events/Message/MSC2676.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Implements MSC2676 (message editing).\n\n[Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2676)","summary":"Implements MSC2676 (message editing).
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","path":"Caridina/Events/Message/MSC2676/Content.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"new_content:Events::Message::Content-instance-method","html_id":"new_content:Events::Message::Content-instance-method","name":"new_content","doc":"Returns the content that will replace the previous message's content.\n\nLike a message's content, this new content can vary and you should use\na case clause to know what it is.","summary":"Returns the content that will replace the previous message's content.
","abstract":false,"args":[],"args_string":" : Events::Message::Content","args_html":" : Events::Message::Content","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":82,"url":null},"def":{"name":"new_content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Events::Message::Content","visibility":"Public","body":"@new_content"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","path":"Caridina/Events/Message/MSC2676/Text.html","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"},{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","class_methods":[],"constructors":[{"id":"new(body,formatted_body,event_id)-class-method","html_id":"new(body,formatted_body,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(body, formatted_body, event_id)","args_html":"(body, formatted_body, event_id)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":88,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":86,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/Text","path":"Caridina/Events/Message/Text.html","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","class_methods":[],"constructors":[{"id":"new(body,formatted_body,format="org.matrix.custom.html")-class-method","html_id":"new(body,formatted_body,format="org.matrix.custom.html")-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"format","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"format","restriction":""}],"args_string":"(body, formatted_body, format = "org.matrix.custom.html")","args_html":"(body, formatted_body, format = "org.matrix.custom.html")","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":49,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"format","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"format","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body, format)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":46,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"format:String?-instance-method","html_id":"format:String?-instance-method","name":"format","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":47,"url":null},"def":{"name":"format","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@format"}},{"id":"formatted_body:String?-instance-method","html_id":"formatted_body:String?-instance-method","name":"formatted_body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":48,"url":null},"def":{"name":"formatted_body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@formatted_body"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/Unknown","path":"Caridina/Events/Message/Unknown.html","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents an unknown event.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":56,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/UnsignedData","path":"Caridina/Events/Message/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Message::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels","path":"Caridina/Events/PowerLevels.html","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content","path":"Caridina/Events/PowerLevels/Content.html","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"invite:UInt8-instance-method","html_id":"invite:UInt8-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@invite"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"notifications:Notifications?-instance-method","html_id":"notifications:Notifications?-instance-method","name":"notifications","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Notifications?","args_html":" : Notifications?","location":null,"def":{"name":"notifications","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Notifications | ::Nil","visibility":"Public","body":"@notifications"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content/RelatesTo","path":"Caridina/Events/PowerLevels/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels/Content","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels/Notifications","path":"Caridina/Events/PowerLevels/Notifications.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Notifications","name":"Notifications","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":136,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room:UInt8-instance-method","html_id":"room:UInt8-instance-method","name":"room","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":{"filename":"src/caridina/events/state_events.cr","line_number":137,"url":null},"def":{"name":"room","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/PowerLevels/UnsignedData","path":"Caridina/Events/PowerLevels/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","path":"Caridina/Events/RedactedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias/Content","path":"Caridina/Events/RedactedCanonicalAlias/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCreate","path":"Caridina/Events/RedactedCreate.html","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCreate/Content","path":"Caridina/Events/RedactedCreate/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCreate::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","path":"Caridina/Events/RedactedJoinRules.html","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedJoinRules/Content","path":"Caridina/Events/RedactedJoinRules/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedJoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRules::JoinRule-instance-method","html_id":"join_rule:JoinRules::JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::JoinRule","args_html":" : JoinRules::JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::JoinRule","visibility":"Public","body":"@join_rule"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMember","path":"Caridina/Events/RedactedMember.html","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMember/Content","path":"Caridina/Events/RedactedMember/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMember::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMessage","path":"Caridina/Events/RedactedMessage.html","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMessage/Content","path":"Caridina/Events/RedactedMessage/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMessage::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","path":"Caridina/Events/RedactedPowerLevels.html","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedPowerLevels/Content","path":"Caridina/Events/RedactedPowerLevels/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedPowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedRedaction","path":"Caridina/Events/RedactedRedaction.html","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedRedaction/Content","path":"Caridina/Events/RedactedRedaction/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedRedaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction","path":"Caridina/Events/Redaction.html","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content","path":"Caridina/Events/Redaction/Content.html","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"reason:String?-instance-method","html_id":"reason:String?-instance-method","name":"reason","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"reason","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@reason"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content/RelatesTo","path":"Caridina/Events/Redaction/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Redaction::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction/Content","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction/UnsignedData","path":"Caridina/Events/Redaction/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Redaction::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RoomEvent","path":"Caridina/Events/RoomEvent.html","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/room_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StateEvent","path":"Caridina/Events/StateEvent.html","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","path":"Caridina/Events/StrippedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:CanonicalAlias::Content-instance-method","html_id":"content:CanonicalAlias::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : CanonicalAlias::Content","args_html":" : CanonicalAlias::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"CanonicalAlias::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCreate","path":"Caridina/Events/StrippedCreate.html","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Create::Content-instance-method","html_id":"content:Create::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Create::Content","args_html":" : Create::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Create::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","path":"Caridina/Events/StrippedJoinRules.html","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:JoinRules::Content-instance-method","html_id":"content:JoinRules::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::Content","args_html":" : JoinRules::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedMember","path":"Caridina/Events/StrippedMember.html","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Member::Content-instance-method","html_id":"content:Member::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Content","args_html":" : Member::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","path":"Caridina/Events/StrippedPowerLevels.html","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:PowerLevels::Content-instance-method","html_id":"content:PowerLevels::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PowerLevels::Content","args_html":" : PowerLevels::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PowerLevels::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedState","path":"Caridina/Events/StrippedState.html","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/StrippedCreate","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate"},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules"},{"html_id":"caridina/Caridina/Events/StrippedMember","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember"},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels"},{"html_id":"caridina/Caridina/Events/StrippedUnknown","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n return StrippedCanonicalAlias.from_json(json)\n when \"m.room.create\"\n return StrippedCreate.from_json(json)\n when \"m.room.join_rules\"\n return StrippedJoinRules.from_json(json)\n when \"m.room.member\"\n return StrippedMember.from_json(json)\n when \"m.room.power_levels\"\n return StrippedPowerLevels.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nStrippedUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedUnknown","path":"Caridina/Events/StrippedUnknown.html","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":30,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":31,"url":null},"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":32,"url":null},"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":33,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Type","path":"Caridina/Events/Type.html","kind":"annotation","full_name":"Caridina::Events::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Use this annotation to specify the event's type.","summary":"Use this annotation to specify the event's type.
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Unknown","path":"Caridina/Events/Unknown.html","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/base.cr","line_number":37,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Modules","path":"Caridina/Modules.html","kind":"module","full_name":"Caridina::Modules","name":"Modules","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts","path":"Caridina/Modules/Receipts.html","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina/Modules","kind":"module","full_name":"Caridina::Modules","name":"Modules"},"doc":"[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#id53)","summary":"","class_methods":[],"constructors":[],"instance_methods":[{"id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","html_id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","name":"send_receipt","doc":"Sends a receipt.\n\nThe only available type so far is a read receipt.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid)","summary":"Sends a receipt.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"args_string":"(room_id : String, event_id : String, type = Type::Read) : Nil","args_html":"(room_id : String, event_id : String, type = Type::Read) : Nil","location":{"filename":"src/caridina/modules/receipts.cr","line_number":19,"url":null},"def":{"name":"send_receipt","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/receipt/#{type}/#{event_id}\")"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts/Type","path":"Caridina/Modules/Receipts/Type.html","kind":"enum","full_name":"Caridina::Modules::Receipts::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Read","name":"Read","value":"0","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Modules/Receipts","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"read?-instance-method","html_id":"read?-instance-method","name":"read?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/modules/receipts.cr","line_number":4,"url":null},"def":{"name":"read?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Read"}},{"id":"to_s-instance-method","html_id":"to_s-instance-method","name":"to_s","doc":"Returns a `String` representation of this enum member.\nIn the case of regular enums, this is just the name of the member.\nIn the case of flag enums, it's the names joined by vertical bars, or \"None\",\nif the value is zero.\n\nIf an enum's value doesn't match a member's value, the raw value\nis returned as a string.\n\n```\nColor::Red.to_s # => \"Red\"\nIOMode::None.to_s # => \"None\"\n(IOMode::Read | IOMode::Write).to_s # => \"Read | Write\"\n\nColor.new(10).to_s # => \"10\"\n```","summary":"Returns a String
representation of this enum member.
Sends a typing notification
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"args_string":"(room_id : String, timeout = 3000, typing = true) : Nil","args_html":"(room_id : String, timeout = 3000, typing = true) : Nil","location":{"filename":"src/caridina/modules/typing.cr","line_number":5,"url":null},"def":{"name":"send_typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"put(\"/rooms/#{room_id}/typing/#{@user_id}\", data: {typing: typing, timeout: timeout})"}},{"id":"typing(room_id:String,&)-instance-method","html_id":"typing(room_id:String,&)-instance-method","name":"typing","doc":"Keeps sending a typing notification while the block runs.\n\nThe notification is sent every 30 seconds.\nOnce the block ends, it sends a last call to stop the notification typing.","summary":"Keeps sending a typing notification while the block runs.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"args_string":"(room_id : String, &)","args_html":"(room_id : String, &)","location":{"filename":"src/caridina/modules/typing.cr","line_number":19,"url":null},"def":{"name":"typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":null,"return_type":"","visibility":"Public","body":"channel = Channel(Nil).new\nspawn do\n timeout = 30000\n send_typing(room_id, timeout: timeout)\n loop do\n select\nwhen channel.receive?\n send_typing(room_id, typing: false)\n break\nwhen timeout(timeout.milliseconds)\n send_typing(room_id, timeout: timeout)\nend\n\n end\nend\nyield\nchannel.close\n"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses","path":"Caridina/Responses.html","kind":"module","full_name":"Caridina::Responses","name":"Responses","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Filter","path":"Caridina/Responses/Filter.html","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/filter.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"filter_id:String-instance-method","html_id":"filter_id:String-instance-method","name":"filter_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/filter.cr","line_number":5,"url":null},"def":{"name":"filter_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@filter_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Response","path":"Caridina/Responses/Response.html","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response","abstract":true,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Responses/Filter","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter"},{"html_id":"caridina/Caridina/Responses/Send","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send"},{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},{"html_id":"caridina/Caridina/Responses/WhoAmI","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/base.cr","line_number":3,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Send","path":"Caridina/Responses/Send.html","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/send.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/send.cr","line_number":5,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync","path":"Caridina/Responses/Sync.html","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"next_batch:String-instance-method","html_id":"next_batch:String-instance-method","name":"next_batch","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/sync.cr","line_number":38,"url":null},"def":{"name":"next_batch","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@next_batch"}},{"id":"rooms:Rooms?-instance-method","html_id":"rooms:Rooms?-instance-method","name":"rooms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Rooms?","args_html":" : Rooms?","location":{"filename":"src/caridina/responses/sync.cr","line_number":39,"url":null},"def":{"name":"rooms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Rooms | ::Nil","visibility":"Public","body":"@rooms"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Sync/InvitedRoom","path":"Caridina/Responses/Sync/InvitedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::InvitedRoom","name":"InvitedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":27,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite_state:InviteState-instance-method","html_id":"invite_state:InviteState-instance-method","name":"invite_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : InviteState","args_html":" : InviteState","location":{"filename":"src/caridina/responses/sync.cr","line_number":29,"url":null},"def":{"name":"invite_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"InviteState","visibility":"Public","body":"@invite_state"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/InviteState","path":"Caridina/Responses/Sync/InviteState.html","kind":"struct","full_name":"Caridina::Responses::Sync::InviteState","name":"InviteState","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":33,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::StrippedState)-instance-method","html_id":"events:Array(Events::StrippedState)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::StrippedState)","args_html":" : Array(Events::StrippedState)","location":{"filename":"src/caridina/responses/sync.cr","line_number":35,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::StrippedState)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/JoinedRoom","path":"Caridina/Responses/Sync/JoinedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::JoinedRoom","name":"JoinedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"timeline:Timeline-instance-method","html_id":"timeline:Timeline-instance-method","name":"timeline","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Timeline","args_html":" : Timeline","location":{"filename":"src/caridina/responses/sync.cr","line_number":17,"url":null},"def":{"name":"timeline","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Timeline","visibility":"Public","body":"@timeline"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Rooms","path":"Caridina/Responses/Sync/Rooms.html","kind":"struct","full_name":"Caridina::Responses::Sync::Rooms","name":"Rooms","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite:Hash(String,InvitedRoom)-instance-method","html_id":"invite:Hash(String,InvitedRoom)-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, InvitedRoom)","args_html":" : Hash(String, InvitedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":11,"url":null},"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, InvitedRoom)","visibility":"Public","body":"@invite"}},{"id":"join:Hash(String,JoinedRoom)-instance-method","html_id":"join:Hash(String,JoinedRoom)-instance-method","name":"join","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, JoinedRoom)","args_html":" : Hash(String, JoinedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":10,"url":null},"def":{"name":"join","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, JoinedRoom)","visibility":"Public","body":"@join"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Timeline","path":"Caridina/Responses/Sync/Timeline.html","kind":"struct","full_name":"Caridina::Responses::Sync::Timeline","name":"Timeline","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":21,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::Event)-instance-method","html_id":"events:Array(Events::Event)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::Event)","args_html":" : Array(Events::Event)","location":{"filename":"src/caridina/responses/sync.cr","line_number":23,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::Event)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses/WhoAmI","path":"Caridina/Responses/WhoAmI.html","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/whoami.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/whoami.cr","line_number":5,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Syncer","path":"Caridina/Syncer.html","kind":"class","full_name":"Caridina::Syncer","name":"Syncer","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"This object allow you to register listeners to be executed when some events\nare received.\n\nThis avoid you to have to parse the whole `Responses::Sync`.\nHowever `#process_response` must be called with a `Responses::Sync` manually.\nThis allow you to control precisely when you want to handle events.\n\n```\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\nEvents sent to listeners are `Events::Event` objects.\nYou should use a type restriction in order to access all their fields.","summary":"This object allow you to register listeners to be executed when some events are received.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"args_string":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":52,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":{"name":"listener","doc":null,"default_value":"","external_name":"listener","restriction":"EventListener"},"return_type":"Nil","visibility":"Public","body":"on(event_type, source, listener)"}},{"id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"args_string":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":56,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if !listener.nil?\n if !(@listeners.has_key?(event_type))\n @listeners[event_type] = Array(Tuple(EventListener, Source)).new\n end\n @listeners[event_type] << {listener, source}\nend"}},{"id":"process_response(sync:Responses::Sync):Nil-instance-method","html_id":"process_response(sync:Responses::Sync):Nil-instance-method","name":"process_response","doc":null,"summary":null,"abstract":false,"args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"args_string":"(sync : Responses::Sync) : Nil","args_html":"(sync : Responses::Sync) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":32,"url":null},"def":{"name":"process_response","args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if rooms = sync.rooms\n rooms.join.each do |room_id, room|\n room.timeline.events.each do |event|\n if event = event.as?(Events::RoomEvent)\n event.room_id = room_id\n dispatch(event, Source::JoinedRooms)\n end\n end\n end\n rooms.invite.each do |room_id, room|\n room.invite_state.events.each do |event|\n event.room_id = room_id\n dispatch(event, Source::InvitedRooms)\n end\n end\nend"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Syncer/EventListener","path":"Caridina/Syncer/EventListener.html","kind":"alias","full_name":"Caridina::Syncer::EventListener","name":"EventListener","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":true,"aliased":"Proc(Caridina::Events::Event, Caridina::Syncer::Source, Nil)","aliased_html":"Caridina::Events::Event, Caridina::Syncer::Source -> Nil","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Syncer/Source","path":"Caridina/Syncer/Source.html","kind":"enum","full_name":"Caridina::Syncer::Source","name":"Source","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"InvitedRooms","name":"InvitedRooms","value":"1","doc":null,"summary":null},{"id":"JoinedRooms","name":"JoinedRooms","value":"2","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invited_rooms?-instance-method","html_id":"invited_rooms?-instance-method","name":"invited_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":26,"url":null},"def":{"name":"invited_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(InvitedRooms)"}},{"id":"joined_rooms?-instance-method","html_id":"joined_rooms?-instance-method","name":"joined_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":27,"url":null},"def":{"name":"joined_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(JoinedRooms)"}},{"id":"none?-instance-method","html_id":"none?-instance-method","name":"none?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":25,"url":null},"def":{"name":"none?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"value == 0"}}],"macros":[],"types":[]}]}]}]}} \ No newline at end of file diff --git a/docs/search-index.js b/docs/search-index.js index 13df26f..b3949e9 100644 --- a/docs/search-index.js +++ b/docs/search-index.js @@ -1 +1 @@ -crystal_doc_search_index_callback({"repository_name":"caridina","body":"# caridina 🦐\n\nA [Matrix](https://matrix.org) client library written in [Crystal](https://crystal-lang.org).\n\nIt is also a species of shrimp, one of them being named \"crystal red\". Crystal for the language, red for the Matrix's red pill.\n\n\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n ```yaml\n dependencies:\n caridina:\n github: erdnaxeli/caridina\n ```\n\n2. Run `shards install`\n\n## Usage\n\nThe API documentation is available [here](https://erdnaxeli.github.io/caridina/Caridina/Connection.html).\n\n### Connecting\n\nCreate a new connection object:\n\n```crystal\nrequire \"caridina\"\n\nconn = Caridina::Connection.new(\n \"https://my-favorite-hs.example.org\",\n \"my access token\",\n)\n```\n\nYou can also login to get a new access token:\n\n```crystal\naccess_token = Caridina::Connection.login(\n \"https://my-favorite-hs.example.org\",\n \"@mybotuserid:my-favorite-hs.example.org\",\n \"my secret password\",\n)\n```\n\n### Sync\n\nNow we can create a new channel, and tell the connection object to start syncing.\nThe sync responses will be streamed in the channel.\n\n```Crystal\nmatrix = Channel(Caridina::Responses::Sync).new\nconn.sync(matrix)\n\nsync = matrix.receive\n```\n\nYou have now a [sync response](src/response/sync.cr).\n\nIf you don't want to go through the whole sync response by yourself (which is\nunderstandable), we provide you a [Caridina::Syncer](src/syncer.cr) object.\n\n```Crystal\nrequire \"caridina/syncer\"\n\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n event = event.as(Caridina::Events::Message)\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\n> :warning: The syncer is a new feature still in development.\n> It currently only supports events in the joined rooms timeline.\n> To access to other events, you need to go through the sync response.\n\n### Read event\n\nThe events in the sync response are all `Caridina::Events::Event` objects.\nYou need to restrict the type of an event object to access all its fields.\n\n```Crystal\nsync.rooms.try &.join.each do |room_id, room|\n room.timeline.events.each do |event|\n case event\n when Caridina::Events::Member\n # someone's membership changed\n when Caridina::Events::PowerLevels\n # some authorization changed\n when Caridina::Events::Message\n # someone talked\n else\n # unknown event\n end\n end\nend\n```\n\nSometimes the event's content can be polymorphic too.\nThat is especially the case for message events.\nBy using again a `case` clause to `event.content` you can restrict its type to access all its fields.\n\n### Send events\n\nThere is not a single method to send an event.\nInstead this library provides a set of methods that correspond to different\nactions you may want to do.\nYou usually do not need to worry about crafting the event to send.\n\n> :warning: This part is in a early stage.\n> Only a few methods are currently provided.\n\n```Crystal\n# join a room\nconn.join(\"!room_id:matrix.org\")\n# send a message\nevent_id = conn.send_message(\"!room_id:matrix.org\", \"Hello, world!\")\n# edit a message\nconn.edit_message(\"!room_id:matrix.org\", event_id, \"Hello, world!\")\n# send a read receipt\nconn.send_receipt(\"!room_id:matrix.org\", \"$event_id:matrix.org\")\n# Use the typing notification as a loader\nconn.typing(\"!room_id:matrix.org\") do\n # Do some processing.\n # While we are in the block, a typing notification will be shown on the given\n # room.\n conn.send_message(\"!room_id:matrix.org\", \"All done!\")\nend\n```\n\n## Development\n\nInstall the dependencies with `shards install`.\n\n* `make test` runs the tests\n* `make lint` runs the formater plus a linter\n\n## Contributing\n\n1. Fork it (JSON::Serializable::use_json_discriminator
on steroids.
A Matrix connection.
","class_methods":[{"id":"login(hs_url:String,user_id:String,password:String):String-class-method","html_id":"login(hs_url:String,user_id:String,password:String):String-class-method","name":"login","doc":"Logs in using to a given homeserver and returns the access token.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login)","summary":"Logs in using to a given homeserver and returns the access token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"args_string":"(hs_url : String, user_id : String, password : String) : String","args_html":"(hs_url : String, user_id : String, password : String) : String","location":{"filename":"src/caridina/connection.cr","line_number":49,"url":null},"def":{"name":"login","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"data = {type: \"m.login.password\", identifier: {type: \"m.id.user\", user: user_id}, password: password}\nresponse = HTTP::Client.post(\"#{hs_url}/_matrix/client/r0/login\", headers: HTTP::Headers {\"Content-Type\" => \"application/json\"}, body: data.to_json)\nif !response.success?\n raise(Exception.new(\"Error with status_code #{response.status_code}\"))\nend\ndata = Hash(String, String).from_json(response.body)\ndata[\"access_token\"]\n"}}],"constructors":[{"id":"new(hs_url:String,access_token:String)-class-method","html_id":"new(hs_url:String,access_token:String)-class-method","name":"new","doc":"Create a new connection object using an access_token.","summary":"Create a new connection object using an access_token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"args_string":"(hs_url : String, access_token : String)","args_html":"(hs_url : String, access_token : String)","location":{"filename":"src/caridina/connection.cr","line_number":73,"url":null},"def":{"name":"new","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(hs_url, access_token)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"create_filter(filter):String-instance-method","html_id":"create_filter(filter):String-instance-method","name":"create_filter","doc":"Creates a sync filter and returns its id.\n\nThe *filter* parameter must be a JSON serializable object.\n\nTODO: This should be implement with a proper model object.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-user-userid-filter)","summary":"Creates a sync filter and returns its id.
","abstract":false,"args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"args_string":"(filter) : String","args_html":"(filter) : String","location":{"filename":"src/caridina/connection.cr","line_number":90,"url":null},"def":{"name":"create_filter","args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = post(\"/user/#{@user_id}/filter\", filter)\nresponse = Responses::Filter.from_json(response)\nresponse.filter_id\n"}},{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":"Edits a message.\n\nOnly `m.text` messages are supported for now.","summary":"Edits a message.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":106,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"tx_id = get_tx_id\ndata = Events::Message::MSC2676::Text.new(message, html, event_id)\nput(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", data)\n"}},{"id":"join(room_id):Nil-instance-method","html_id":"join(room_id):Nil-instance-method","name":"join","doc":"Joins a room.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-join)","summary":"Joins a room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"args_string":"(room_id) : Nil","args_html":"(room_id) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":99,"url":null},"def":{"name":"join","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/join\")"}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":"Sends a message to a given room.\n\nOnly `m.text` messages are supported for now.","summary":"Sends a message to a given room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":115,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"tx_id = get_tx_id\npayload = Events::Message::Text.new(message, html)\ndata = put(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", payload)\n(Responses::Send.from_json(data)).event_id\n"}},{"id":"sync(channel:Channel(Responses::Sync))-instance-method","html_id":"sync(channel:Channel(Responses::Sync))-instance-method","name":"sync","doc":"Starts syncing.\n\nThis method starts a new fiber wich will run sync queries, and send received\nevents in *channel*.\n\nIt uses a filter to limit the received events to supported ones.\n\nWhen called, it will first do an inital sync.\nThis first sync may return events you already seen in a previous sync.\nYou should handle this in your code, either by skipping the first sync or\nby storing the id of the events you processed.\n\nTODO: accept an *next_batch* parameter to skip the initial sync.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-sync)","summary":"Starts syncing.
","abstract":false,"args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"args_string":"(channel : Channel(Responses::Sync))","args_html":"(channel : Channel(Responses::Sync))","location":{"filename":"src/caridina/connection.cr","line_number":138,"url":null},"def":{"name":"sync","args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"if @syncing\n raise(Exception.new(\"Already syncing\"))\nend\nfilter = {account_data: {types: [] of String}, presence: {types: [] of String}, room: {account_data: {types: [] of String}, ephemeral: {types: [] of String}, timeline: {lazy_load_members: true}, state: {lazy_load_members: true}}}\nfilter_id = create_filter(filter)\nspawn do\n next_batch = nil\n loop do\n begin\n if next_batch.nil?\n response = get(\"/sync\", is_sync: true, filter: filter_id)\n else\n response = get(\"/sync\", is_sync: true, filter: filter_id, since: next_batch, timeout: 300000)\n end\n rescue ex : ExecError\n Log.error(exception: ex) do\n \"Error while syncing, waiting 10s before retry\"\n end\n sleep(10)\n next\n end\n sync = Responses::Sync.from_json(response)\n next_batch = sync.next_batch\n channel.send(sync)\n end\nend\n"}},{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":"Returns the connected account's user_id.","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":44,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}},{"id":"whoami:String-instance-method","html_id":"whoami:String-instance-method","name":"whoami","doc":"Returns the connected account's user_id.\n\nYou probably should use `user_id` which already store that information.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-account-whoami)","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":186,"url":null},"def":{"name":"whoami","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = get(\"/account/whoami\")\nresponse = Responses::WhoAmI.from_json(response)\nresponse.user_id\n"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/ConnectionInterface","path":"Caridina/ConnectionInterface.html","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"Interface that represents a Matrix connection.","summary":"Interface that represents a Matrix connection.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":15,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":""}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":16,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":""}}],"macros":[],"types":[{"html_id":"caridina/Caridina/ConnectionInterface/ExecError","path":"Caridina/ConnectionInterface/ExecError.html","kind":"class","full_name":"Caridina::ConnectionInterface::ExecError","name":"ExecError","abstract":false,"superclass":{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/ConnectionInterface","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Errors","path":"Caridina/Errors.html","kind":"module","full_name":"Caridina::Errors","name":"Errors","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Errors/RateLimited","path":"Caridina/Errors/RateLimited.html","kind":"struct","full_name":"Caridina::Errors::RateLimited","name":"RateLimited","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Errors","kind":"module","full_name":"Caridina::Errors","name":"Errors"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(payload)-class-method","html_id":"new(payload)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"args_string":"(payload)","args_html":"(payload)","location":{"filename":"src/caridina/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(payload)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"retry_after_ms:Int32-instance-method","html_id":"retry_after_ms:Int32-instance-method","name":"retry_after_ms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int32","args_html":" : Int32","location":{"filename":"src/caridina/errors.cr","line_number":4,"url":null},"def":{"name":"retry_after_ms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int32","visibility":"Public","body":"@retry_after_ms"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events","path":"Caridina/Events.html","kind":"module","full_name":"Caridina::Events","name":"Events","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[{"id":"make_content(*fields)-macro","html_id":"make_content(*fields)-macro","name":"make_content","doc":null,"summary":null,"abstract":false,"args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(*fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":241,"url":null},"def":{"name":"make_content","args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":0,"block_arg":null,"visibility":"Public","body":" class Content\n include JSON::Serializable\n\n Caridina::Events.make_relates_to\n\n \n{% for field in fields %}\n getter {{ field.id }}\n {% end %}\n\n \nend\n\n getter content : Content\n \n"}},{"id":"make_redacted(name,type,fields,superclass)-macro","html_id":"make_redacted(name,type,fields,superclass)-macro","name":"make_redacted","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"args_string":"(name, type, fields, superclass)","location":{"filename":"src/caridina/events/macros.cr","line_number":255,"url":null},"def":{"name":"make_redacted","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n{% redaction_allowed_fields = {\"event_id\", \"type\", \"room_id\", \"sender\", \"state_key\", \"content\", \"hashes\", \"signatures\", \"depth\", \"prev_events\", \"prev_state\", \"auth_events\", \"origin\", \"origin_server_ts\", \"membership\"} %}\n\n\n class Redacted\n{{ name.id }}\n < \n{{ superclass }}\n\n struct Content\n include JSON::Serializable\n include JSON::Serializable::Strict\n\n \n{% if type == \"m.room.member\" %}\n getter membership : Member::Membership\n {% else %}{% if type == \"m.room.create\" %}\n getter creator : String\n {% else %}{% if type == \"m.room.join_rules\" %}\n getter join_rule : JoinRules::JoinRule\n {% else %}{% if type == \"m.room.power_levels\" %}\n getter ban = 50_u8\n getter events = Hash(String, UInt8).new\n getter events_default = 0_u8\n getter kick = 50_u8\n getter redact = 50_u8\n getter states_default = 50_u8\n getter users = Hash(String, UInt8).new\n getter users_default = 0_i8\n {% end %}{% end %}{% end %}{% end %}\n\n \nend\n\n\n \n{% for field in fields %}\n {% if field.is_a?(TypeDeclaration) %}\n {% name = field.var %}\n {% else %}{% if field.is_a?(Assign) %}\n {% name = field.target %}\n {% else %}\n {% raise(\"Unhandled field #{field}\") %}\n {% end %}{% end %}\n\n {% if redaction_allowed_fields.includes?(name.stringify) %}\n getter {{ field.id }}\n {% end %}\n {% end %}\n\n\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_relates_to-macro","html_id":"make_relates_to-macro","name":"make_relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":211,"url":null},"def":{"name":"make_relates_to","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n# Represents a relation to another event.\n\n \n#\n\n \n# [Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)\n\n struct RelatesTo\n include JSON::Serializable\n\n getter rel_type : String?\n getter \nevent_id : String?\n\n def initialize(@rel_type, @event_id)\n \nend\n \nend\n\n \n# This implements MSC2674 (event relationships).\n\n \n#\n\n \n# [Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2674)\n\n @[JSON::Field(key: \"m.relates_to\")]\n getter relates_to : RelatesTo?\n \n"}},{"id":"make_room_event(name,type,*fields,superclass=nil)-macro","html_id":"make_room_event(name,type,*fields,superclass=nil)-macro","name":"make_room_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"args_string":"(name, type, *fields, superclass = nil)","location":{"filename":"src/caridina/events/macros.cr","line_number":322,"url":null},"def":{"name":"make_room_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" @[Type(\n{{ type }}\n)]\n \n{% if !superclass %}\n {% superclass = RoomEvent %}\n {% end %}\n\n class \n{{ name.id }}\n < \n{{ superclass }}\n\n Caridina::Events.make_content(\n{{ *fields }}\n)\n Caridina::Events.make_unsigned_data\n\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n getter unsigned : UnsignedData?\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n\n \n{{ yield }}\n\n \nend\n\n make_redacted(\n{{ name.id }}\n, \n{{ type }}\n, \n{{ fields }}\n, \n{{ superclass }}\n)\n \n"}},{"id":"make_state_event(name,type,*fields)-macro","html_id":"make_state_event(name,type,*fields)-macro","name":"make_state_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(name, type, *fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":346,"url":null},"def":{"name":"make_state_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" Caridina::Events.make_room_event(\n{{ name }}\n, \n{{ type }}\n, \n{{ *fields }}\n, superclass: StateEvent) do\n getter state_key : String\n\n \n{{ yield }}\n\n \nend\n\n class Stripped\n{{ name }}\n < StrippedState\n getter content : \n{{ name.id }}\n::Content\n getter sender : String\n getter state_key : String\n getter type : String\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_unsigned_data-macro","html_id":"make_unsigned_data-macro","name":"make_unsigned_data","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":232,"url":null},"def":{"name":"make_unsigned_data","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" struct UnsignedData\n include JSON::Serializable\n\n getter age : Int64\n getter transaction_id : String?\n \nend\n \n"}}],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","path":"Caridina/Events/CanonicalAlias.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","path":"Caridina/Events/CanonicalAlias/Content.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"alias:String?-instance-method","html_id":"alias:String?-instance-method","name":"alias","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"alias","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@alias"}},{"id":"alt_aliases:Array(String)-instance-method","html_id":"alt_aliases:Array(String)-instance-method","name":"alt_aliases","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)","args_html":" : Array(String)","location":null,"def":{"name":"alt_aliases","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String)","visibility":"Public","body":"@alt_aliases"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content/RelatesTo","path":"Caridina/Events/CanonicalAlias/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/CanonicalAlias/UnsignedData","path":"Caridina/Events/CanonicalAlias/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create","path":"Caridina/Events/Create.html","kind":"class","full_name":"Caridina::Events::Create","name":"Create","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content","path":"Caridina/Events/Create/Content.html","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}},{"id":"m_federate:Bool-instance-method","html_id":"m_federate:Bool-instance-method","name":"m_federate","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool","args_html":" : Bool","location":{"filename":"src/caridina/events/state_events.cr","line_number":67,"url":null},"def":{"name":"m_federate","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@m_federate"}},{"id":"predecessor:PreviousRoom?-instance-method","html_id":"predecessor:PreviousRoom?-instance-method","name":"predecessor","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PreviousRoom?","args_html":" : PreviousRoom?","location":null,"def":{"name":"predecessor","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PreviousRoom | ::Nil","visibility":"Public","body":"@predecessor"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"room_version:String-instance-method","html_id":"room_version:String-instance-method","name":"room_version","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"room_version","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_version"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content/RelatesTo","path":"Caridina/Events/Create/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Create::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create/Content","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create/PreviousRoom","path":"Caridina/Events/Create/PreviousRoom.html","kind":"struct","full_name":"Caridina::Events::Create::PreviousRoom","name":"PreviousRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":59,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":62,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"room_id:String-instance-method","html_id":"room_id:String-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":60,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@room_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Create/UnsignedData","path":"Caridina/Events/Create/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Create::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Event","path":"Caridina/Events/Event.html","kind":"class","full_name":"Caridina::Events::Event","name":"Event","abstract":true,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Unknown","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Base type representing an event.\n\nAll types returned by the `Caridina::Connection::Sync` method will be\nof this type.\nYou can then match the returned event type against known types to be able\nto use all the event's field.\n\nIf the event is unknown, it returns nil.","summary":"Base type representing an event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":17,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n begin\n return CanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.create\"\n begin\n return Create.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCreate.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.join_rules\"\n begin\n return JoinRules.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedJoinRules.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.member\"\n begin\n return Member.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMember.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.power_levels\"\n begin\n return PowerLevels.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedPowerLevels.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.redaction\"\n begin\n return Redaction.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedRedaction.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.message\"\n begin\n return Message.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMessage.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules","path":"Caridina/Events/JoinRules.html","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content","path":"Caridina/Events/JoinRules/Content.html","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRule-instance-method","html_id":"join_rule:JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRule","args_html":" : JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRule","visibility":"Public","body":"@join_rule"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content/RelatesTo","path":"Caridina/Events/JoinRules/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::JoinRules::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules/Content","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/JoinRules/JoinRule","path":"Caridina/Events/JoinRules/JoinRule.html","kind":"enum","full_name":"Caridina::Events::JoinRules::JoinRule","name":"JoinRule","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Public","name":"Public","value":"0","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"1","doc":null,"summary":null},{"id":"Invite","name":"Invite","value":"2","doc":null,"summary":null},{"id":"Private","name":"Private","value":"3","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":82,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":81,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"private?-instance-method","html_id":"private?-instance-method","name":"private?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":83,"url":null},"def":{"name":"private?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Private"}},{"id":"public?-instance-method","html_id":"public?-instance-method","name":"public?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":80,"url":null},"def":{"name":"public?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Public"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules/UnsignedData","path":"Caridina/Events/JoinRules/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::JoinRules::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member","path":"Caridina/Events/Member.html","kind":"class","full_name":"Caridina::Events::Member","name":"Member","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content","path":"Caridina/Events/Member/Content.html","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"avatar_url:String?-instance-method","html_id":"avatar_url:String?-instance-method","name":"avatar_url","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"avatar_url","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@avatar_url"}},{"id":"displayname:String?-instance-method","html_id":"displayname:String?-instance-method","name":"displayname","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"displayname","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@displayname"}},{"id":"is_direct:Bool?-instance-method","html_id":"is_direct:Bool?-instance-method","name":"is_direct","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool?","args_html":" : Bool?","location":null,"def":{"name":"is_direct","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Bool | ::Nil","visibility":"Public","body":"@is_direct"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"third_party_invite:Invite?-instance-method","html_id":"third_party_invite:Invite?-instance-method","name":"third_party_invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Invite?","args_html":" : Invite?","location":null,"def":{"name":"third_party_invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Invite | ::Nil","visibility":"Public","body":"@third_party_invite"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content/RelatesTo","path":"Caridina/Events/Member/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Member::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member/Content","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member/Invite","path":"Caridina/Events/Member/Invite.html","kind":"struct","full_name":"Caridina::Events::Member::Invite","name":"Invite","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":108,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"display_name:String-instance-method","html_id":"display_name:String-instance-method","name":"display_name","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":109,"url":null},"def":{"name":"display_name","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@display_name"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/Membership","path":"Caridina/Events/Member/Membership.html","kind":"enum","full_name":"Caridina::Events::Member::Membership","name":"Membership","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Invite","name":"Invite","value":"0","doc":null,"summary":null},{"id":"Join","name":"Join","value":"1","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"2","doc":null,"summary":null},{"id":"Leave","name":"Leave","value":"3","doc":null,"summary":null},{"id":"Ban","name":"Ban","value":"4","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"ban?-instance-method","html_id":"ban?-instance-method","name":"ban?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":104,"url":null},"def":{"name":"ban?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Ban"}},{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":100,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"join?-instance-method","html_id":"join?-instance-method","name":"join?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":101,"url":null},"def":{"name":"join?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Join"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":102,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"leave?-instance-method","html_id":"leave?-instance-method","name":"leave?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":103,"url":null},"def":{"name":"leave?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Leave"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/UnsignedData","path":"Caridina/Events/Member/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Member::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"invite_room_state:Array(StrippedState)?-instance-method","html_id":"invite_room_state:Array(StrippedState)?-instance-method","name":"invite_room_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(StrippedState)?","args_html":" : Array(StrippedState)?","location":{"filename":"src/caridina/events/state_events.cr","line_number":114,"url":null},"def":{"name":"invite_room_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(StrippedState) | ::Nil","visibility":"Public","body":"@invite_room_state"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message","path":"Caridina/Events/Message.html","kind":"class","full_name":"Caridina::Events::Message","name":"Message","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content","path":"Caridina/Events/Message/Content.html","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Unknown","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content.\n\nThis event's content can have different fields according to its field\n`msgtype`.\nEach available content is represent by its own type.\nTo know which message event you are dealing with, you can use a case clause\nover the content's type.\n\n```\ncase event.content\nwhen Caridina::Events::Message::Text\n # handle a message\nwhen Caridina::Events::Message::MSC2676::Text\n # handle a message edit\nwhen Caridina::Events::Message::Unknown\n # Unknown message type, but you can still inspect `event.content.body` and\n # `event.content.msgtype`.\nelse\n # fallback\nend\n```\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message)","summary":"Represents a m.room.message event's content.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"msgtype\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n when \"m.relates_to\"\n field_name = [\"m.relates_to\"]\n builder.field(key) do\n builder.start_object\n pull.read_object do |key|\n case key\n when \"rel_type\"\n field_name << \"rel_type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {field_name, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"msgtype\", [\"m.relates_to\", \"rel_type\"]]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"msgtype\"\n key = \"\\\"msgtype\\\"\"\n case discriminator_value\n when \"m.text\"\n return Text.from_json(json)\n end\n when [\"m.relates_to\", \"rel_type\"]\n key = \"[\\\"m.relates_to\\\", \\\"rel_type\\\"]\"\n case discriminator_value\n when \"m.replace\"\n return MSC2676::Dispatcher.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[{"id":"body:String-instance-method","html_id":"body:String-instance-method","name":"body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@body"}},{"id":"msgtype:String-instance-method","html_id":"msgtype:String-instance-method","name":"msgtype","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"msgtype","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@msgtype"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content/RelatesTo","path":"Caridina/Events/Message/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Message::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/MSC2676","path":"Caridina/Events/Message/MSC2676.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Implements MSC2676 (message editing).\n\n[Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2676)","summary":"Implements MSC2676 (message editing).
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","path":"Caridina/Events/Message/MSC2676/Content.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"new_content:Events::Message::Content-instance-method","html_id":"new_content:Events::Message::Content-instance-method","name":"new_content","doc":"Returns the content that will replace the previous message's content.\n\nLike a message's content, this new content can vary and you should use\na case clause to know what it is.","summary":"Returns the content that will replace the previous message's content.
","abstract":false,"args":[],"args_string":" : Events::Message::Content","args_html":" : Events::Message::Content","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":82,"url":null},"def":{"name":"new_content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Events::Message::Content","visibility":"Public","body":"@new_content"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","path":"Caridina/Events/Message/MSC2676/Text.html","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"},{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","class_methods":[],"constructors":[{"id":"new(body,formatted_body,event_id)-class-method","html_id":"new(body,formatted_body,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(body, formatted_body, event_id)","args_html":"(body, formatted_body, event_id)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":88,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":86,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/Text","path":"Caridina/Events/Message/Text.html","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":46,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}},{"id":"new(body,formatted_body="org.matrix.custom.html")-class-method","html_id":"new(body,formatted_body="org.matrix.custom.html")-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"formatted_body","restriction":""}],"args_string":"(body, formatted_body = "org.matrix.custom.html")","args_html":"(body, formatted_body = "org.matrix.custom.html")","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":49,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"formatted_body","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"format:String?-instance-method","html_id":"format:String?-instance-method","name":"format","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":47,"url":null},"def":{"name":"format","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@format"}},{"id":"formatted_body:String?-instance-method","html_id":"formatted_body:String?-instance-method","name":"formatted_body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":48,"url":null},"def":{"name":"formatted_body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@formatted_body"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/Unknown","path":"Caridina/Events/Message/Unknown.html","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents an unknown event.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":56,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/UnsignedData","path":"Caridina/Events/Message/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Message::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels","path":"Caridina/Events/PowerLevels.html","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content","path":"Caridina/Events/PowerLevels/Content.html","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"invite:UInt8-instance-method","html_id":"invite:UInt8-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@invite"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"notifications:Notifications?-instance-method","html_id":"notifications:Notifications?-instance-method","name":"notifications","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Notifications?","args_html":" : Notifications?","location":null,"def":{"name":"notifications","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Notifications | ::Nil","visibility":"Public","body":"@notifications"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content/RelatesTo","path":"Caridina/Events/PowerLevels/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels/Content","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels/Notifications","path":"Caridina/Events/PowerLevels/Notifications.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Notifications","name":"Notifications","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":136,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room:UInt8-instance-method","html_id":"room:UInt8-instance-method","name":"room","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":{"filename":"src/caridina/events/state_events.cr","line_number":137,"url":null},"def":{"name":"room","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/PowerLevels/UnsignedData","path":"Caridina/Events/PowerLevels/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","path":"Caridina/Events/RedactedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias/Content","path":"Caridina/Events/RedactedCanonicalAlias/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCreate","path":"Caridina/Events/RedactedCreate.html","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCreate/Content","path":"Caridina/Events/RedactedCreate/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCreate::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","path":"Caridina/Events/RedactedJoinRules.html","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedJoinRules/Content","path":"Caridina/Events/RedactedJoinRules/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedJoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRules::JoinRule-instance-method","html_id":"join_rule:JoinRules::JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::JoinRule","args_html":" : JoinRules::JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::JoinRule","visibility":"Public","body":"@join_rule"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMember","path":"Caridina/Events/RedactedMember.html","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMember/Content","path":"Caridina/Events/RedactedMember/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMember::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMessage","path":"Caridina/Events/RedactedMessage.html","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMessage/Content","path":"Caridina/Events/RedactedMessage/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMessage::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","path":"Caridina/Events/RedactedPowerLevels.html","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedPowerLevels/Content","path":"Caridina/Events/RedactedPowerLevels/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedPowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedRedaction","path":"Caridina/Events/RedactedRedaction.html","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedRedaction/Content","path":"Caridina/Events/RedactedRedaction/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedRedaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction","path":"Caridina/Events/Redaction.html","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content","path":"Caridina/Events/Redaction/Content.html","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"reason:String?-instance-method","html_id":"reason:String?-instance-method","name":"reason","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"reason","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@reason"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content/RelatesTo","path":"Caridina/Events/Redaction/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Redaction::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction/Content","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction/UnsignedData","path":"Caridina/Events/Redaction/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Redaction::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RoomEvent","path":"Caridina/Events/RoomEvent.html","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/room_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StateEvent","path":"Caridina/Events/StateEvent.html","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","path":"Caridina/Events/StrippedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:CanonicalAlias::Content-instance-method","html_id":"content:CanonicalAlias::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : CanonicalAlias::Content","args_html":" : CanonicalAlias::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"CanonicalAlias::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCreate","path":"Caridina/Events/StrippedCreate.html","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Create::Content-instance-method","html_id":"content:Create::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Create::Content","args_html":" : Create::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Create::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","path":"Caridina/Events/StrippedJoinRules.html","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:JoinRules::Content-instance-method","html_id":"content:JoinRules::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::Content","args_html":" : JoinRules::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedMember","path":"Caridina/Events/StrippedMember.html","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Member::Content-instance-method","html_id":"content:Member::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Content","args_html":" : Member::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","path":"Caridina/Events/StrippedPowerLevels.html","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:PowerLevels::Content-instance-method","html_id":"content:PowerLevels::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PowerLevels::Content","args_html":" : PowerLevels::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PowerLevels::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedState","path":"Caridina/Events/StrippedState.html","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/StrippedCreate","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate"},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules"},{"html_id":"caridina/Caridina/Events/StrippedMember","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember"},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels"},{"html_id":"caridina/Caridina/Events/StrippedUnknown","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n return StrippedCanonicalAlias.from_json(json)\n when \"m.room.create\"\n return StrippedCreate.from_json(json)\n when \"m.room.join_rules\"\n return StrippedJoinRules.from_json(json)\n when \"m.room.member\"\n return StrippedMember.from_json(json)\n when \"m.room.power_levels\"\n return StrippedPowerLevels.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nStrippedUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedUnknown","path":"Caridina/Events/StrippedUnknown.html","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":30,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":31,"url":null},"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":32,"url":null},"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":33,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Type","path":"Caridina/Events/Type.html","kind":"annotation","full_name":"Caridina::Events::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Use this annotation to specify the event's type.","summary":"Use this annotation to specify the event's type.
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Unknown","path":"Caridina/Events/Unknown.html","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/base.cr","line_number":37,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Modules","path":"Caridina/Modules.html","kind":"module","full_name":"Caridina::Modules","name":"Modules","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts","path":"Caridina/Modules/Receipts.html","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina/Modules","kind":"module","full_name":"Caridina::Modules","name":"Modules"},"doc":"[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#id53)","summary":"","class_methods":[],"constructors":[],"instance_methods":[{"id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","html_id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","name":"send_receipt","doc":"Sends a receipt.\n\nThe only available type so far is a read receipt.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid)","summary":"Sends a receipt.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"args_string":"(room_id : String, event_id : String, type = Type::Read) : Nil","args_html":"(room_id : String, event_id : String, type = Type::Read) : Nil","location":{"filename":"src/caridina/modules/receipts.cr","line_number":19,"url":null},"def":{"name":"send_receipt","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/receipt/#{type}/#{event_id}\")"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts/Type","path":"Caridina/Modules/Receipts/Type.html","kind":"enum","full_name":"Caridina::Modules::Receipts::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Read","name":"Read","value":"0","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Modules/Receipts","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"read?-instance-method","html_id":"read?-instance-method","name":"read?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/modules/receipts.cr","line_number":4,"url":null},"def":{"name":"read?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Read"}},{"id":"to_s-instance-method","html_id":"to_s-instance-method","name":"to_s","doc":"Returns a `String` representation of this enum member.\nIn the case of regular enums, this is just the name of the member.\nIn the case of flag enums, it's the names joined by vertical bars, or \"None\",\nif the value is zero.\n\nIf an enum's value doesn't match a member's value, the raw value\nis returned as a string.\n\n```\nColor::Red.to_s # => \"Red\"\nIOMode::None.to_s # => \"None\"\n(IOMode::Read | IOMode::Write).to_s # => \"Read | Write\"\n\nColor.new(10).to_s # => \"10\"\n```","summary":"Returns a String
representation of this enum member.
Sends a typing notification
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"args_string":"(room_id : String, timeout = 3000, typing = true) : Nil","args_html":"(room_id : String, timeout = 3000, typing = true) : Nil","location":{"filename":"src/caridina/modules/typing.cr","line_number":5,"url":null},"def":{"name":"send_typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"put(\"/rooms/#{room_id}/typing/#{@user_id}\", data: {typing: typing, timeout: timeout})"}},{"id":"typing(room_id:String,&)-instance-method","html_id":"typing(room_id:String,&)-instance-method","name":"typing","doc":"Keeps sending a typing notification while the block runs.\n\nThe notification is sent every 30 seconds.\nOnce the block ends, it sends a last call to stop the notification typing.","summary":"Keeps sending a typing notification while the block runs.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"args_string":"(room_id : String, &)","args_html":"(room_id : String, &)","location":{"filename":"src/caridina/modules/typing.cr","line_number":19,"url":null},"def":{"name":"typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":null,"return_type":"","visibility":"Public","body":"channel = Channel(Nil).new\nspawn do\n timeout = 30000\n send_typing(room_id, timeout: timeout)\n loop do\n select\nwhen channel.receive?\n send_typing(room_id, typing: false)\n break\nwhen timeout(timeout.milliseconds)\n send_typing(room_id, timeout: timeout)\nend\n\n end\nend\nyield\nchannel.close\n"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses","path":"Caridina/Responses.html","kind":"module","full_name":"Caridina::Responses","name":"Responses","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Filter","path":"Caridina/Responses/Filter.html","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/filter.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"filter_id:String-instance-method","html_id":"filter_id:String-instance-method","name":"filter_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/filter.cr","line_number":5,"url":null},"def":{"name":"filter_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@filter_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Response","path":"Caridina/Responses/Response.html","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response","abstract":true,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Responses/Filter","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter"},{"html_id":"caridina/Caridina/Responses/Send","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send"},{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},{"html_id":"caridina/Caridina/Responses/WhoAmI","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/base.cr","line_number":3,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Send","path":"Caridina/Responses/Send.html","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/send.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/send.cr","line_number":5,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync","path":"Caridina/Responses/Sync.html","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"next_batch:String-instance-method","html_id":"next_batch:String-instance-method","name":"next_batch","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/sync.cr","line_number":38,"url":null},"def":{"name":"next_batch","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@next_batch"}},{"id":"rooms:Rooms?-instance-method","html_id":"rooms:Rooms?-instance-method","name":"rooms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Rooms?","args_html":" : Rooms?","location":{"filename":"src/caridina/responses/sync.cr","line_number":39,"url":null},"def":{"name":"rooms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Rooms | ::Nil","visibility":"Public","body":"@rooms"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Sync/InvitedRoom","path":"Caridina/Responses/Sync/InvitedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::InvitedRoom","name":"InvitedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":27,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite_state:InviteState-instance-method","html_id":"invite_state:InviteState-instance-method","name":"invite_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : InviteState","args_html":" : InviteState","location":{"filename":"src/caridina/responses/sync.cr","line_number":29,"url":null},"def":{"name":"invite_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"InviteState","visibility":"Public","body":"@invite_state"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/InviteState","path":"Caridina/Responses/Sync/InviteState.html","kind":"struct","full_name":"Caridina::Responses::Sync::InviteState","name":"InviteState","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":33,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::StrippedState)-instance-method","html_id":"events:Array(Events::StrippedState)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::StrippedState)","args_html":" : Array(Events::StrippedState)","location":{"filename":"src/caridina/responses/sync.cr","line_number":35,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::StrippedState)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/JoinedRoom","path":"Caridina/Responses/Sync/JoinedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::JoinedRoom","name":"JoinedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"timeline:Timeline-instance-method","html_id":"timeline:Timeline-instance-method","name":"timeline","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Timeline","args_html":" : Timeline","location":{"filename":"src/caridina/responses/sync.cr","line_number":17,"url":null},"def":{"name":"timeline","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Timeline","visibility":"Public","body":"@timeline"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Rooms","path":"Caridina/Responses/Sync/Rooms.html","kind":"struct","full_name":"Caridina::Responses::Sync::Rooms","name":"Rooms","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite:Hash(String,InvitedRoom)-instance-method","html_id":"invite:Hash(String,InvitedRoom)-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, InvitedRoom)","args_html":" : Hash(String, InvitedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":11,"url":null},"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, InvitedRoom)","visibility":"Public","body":"@invite"}},{"id":"join:Hash(String,JoinedRoom)-instance-method","html_id":"join:Hash(String,JoinedRoom)-instance-method","name":"join","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, JoinedRoom)","args_html":" : Hash(String, JoinedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":10,"url":null},"def":{"name":"join","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, JoinedRoom)","visibility":"Public","body":"@join"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Timeline","path":"Caridina/Responses/Sync/Timeline.html","kind":"struct","full_name":"Caridina::Responses::Sync::Timeline","name":"Timeline","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":21,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::Event)-instance-method","html_id":"events:Array(Events::Event)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::Event)","args_html":" : Array(Events::Event)","location":{"filename":"src/caridina/responses/sync.cr","line_number":23,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::Event)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses/WhoAmI","path":"Caridina/Responses/WhoAmI.html","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/whoami.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/whoami.cr","line_number":5,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Syncer","path":"Caridina/Syncer.html","kind":"class","full_name":"Caridina::Syncer","name":"Syncer","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"This object allow you to register listeners to be executed when some events\nare received.\n\nThis avoid you to have to parse the whole `Responses::Sync`.\nHowever `#process_response` must be called with a `Responses::Sync` manually.\nThis allow you to control precisely when you want to handle events.\n\n```\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\nEvents sent to listeners are `Events::Event` objects.\nYou should use a type restriction in order to access all their fields.","summary":"This object allow you to register listeners to be executed when some events are received.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"args_string":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":52,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":{"name":"listener","doc":null,"default_value":"","external_name":"listener","restriction":"EventListener"},"return_type":"Nil","visibility":"Public","body":"on(event_type, source, listener)"}},{"id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"args_string":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":56,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if !listener.nil?\n if !(@listeners.has_key?(event_type))\n @listeners[event_type] = Array(Tuple(EventListener, Source)).new\n end\n @listeners[event_type] << {listener, source}\nend"}},{"id":"process_response(sync:Responses::Sync):Nil-instance-method","html_id":"process_response(sync:Responses::Sync):Nil-instance-method","name":"process_response","doc":null,"summary":null,"abstract":false,"args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"args_string":"(sync : Responses::Sync) : Nil","args_html":"(sync : Responses::Sync) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":32,"url":null},"def":{"name":"process_response","args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if rooms = sync.rooms\n rooms.join.each do |room_id, room|\n room.timeline.events.each do |event|\n if event = event.as?(Events::RoomEvent)\n event.room_id = room_id\n dispatch(event, Source::JoinedRooms)\n end\n end\n end\n rooms.invite.each do |room_id, room|\n room.invite_state.events.each do |event|\n event.room_id = room_id\n dispatch(event, Source::InvitedRooms)\n end\n end\nend"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Syncer/EventListener","path":"Caridina/Syncer/EventListener.html","kind":"alias","full_name":"Caridina::Syncer::EventListener","name":"EventListener","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":true,"aliased":"Proc(Caridina::Events::Event, Caridina::Syncer::Source, Nil)","aliased_html":"Caridina::Events::Event, Caridina::Syncer::Source -> Nil","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Syncer/Source","path":"Caridina/Syncer/Source.html","kind":"enum","full_name":"Caridina::Syncer::Source","name":"Source","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"InvitedRooms","name":"InvitedRooms","value":"1","doc":null,"summary":null},{"id":"JoinedRooms","name":"JoinedRooms","value":"2","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invited_rooms?-instance-method","html_id":"invited_rooms?-instance-method","name":"invited_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":26,"url":null},"def":{"name":"invited_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(InvitedRooms)"}},{"id":"joined_rooms?-instance-method","html_id":"joined_rooms?-instance-method","name":"joined_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":27,"url":null},"def":{"name":"joined_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(JoinedRooms)"}},{"id":"none?-instance-method","html_id":"none?-instance-method","name":"none?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":25,"url":null},"def":{"name":"none?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"value == 0"}}],"macros":[],"types":[]}]}]}]}}) \ No newline at end of file +crystal_doc_search_index_callback({"repository_name":"caridina","body":"# caridina 🦐\n\nA [Matrix](https://matrix.org) client library written in [Crystal](https://crystal-lang.org).\n\nIt is also a species of shrimp, one of them being named \"crystal red\". Crystal for the language, red for the Matrix's red pill.\n\n\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n ```yaml\n dependencies:\n caridina:\n github: erdnaxeli/caridina\n ```\n\n2. Run `shards install`\n\n## Usage\n\nThe API documentation is available [here](https://erdnaxeli.github.io/caridina/Caridina/Connection.html).\n\n### Connecting\n\nCreate a new connection object:\n\n```crystal\nrequire \"caridina\"\n\nconn = Caridina::Connection.new(\n \"https://my-favorite-hs.example.org\",\n \"my access token\",\n)\n```\n\nYou can also login to get a new access token:\n\n```crystal\naccess_token = Caridina::Connection.login(\n \"https://my-favorite-hs.example.org\",\n \"@mybotuserid:my-favorite-hs.example.org\",\n \"my secret password\",\n)\n```\n\n### Sync\n\nNow we can create a new channel, and tell the connection object to start syncing.\nThe sync responses will be streamed in the channel.\n\n```Crystal\nmatrix = Channel(Caridina::Responses::Sync).new\nconn.sync(matrix)\n\nsync = matrix.receive\n```\n\nYou have now a [sync response](src/response/sync.cr).\n\nIf you don't want to go through the whole sync response by yourself (which is\nunderstandable), we provide you a [Caridina::Syncer](src/syncer.cr) object.\n\n```Crystal\nrequire \"caridina/syncer\"\n\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n event = event.as(Caridina::Events::Message)\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\n> :warning: The syncer is a new feature still in development.\n> It currently only supports events in the joined rooms timeline.\n> To access to other events, you need to go through the sync response.\n\n### Read event\n\nThe events in the sync response are all `Caridina::Events::Event` objects.\nYou need to restrict the type of an event object to access all its fields.\n\n```Crystal\nsync.rooms.try &.join.each do |room_id, room|\n room.timeline.events.each do |event|\n case event\n when Caridina::Events::Member\n # someone's membership changed\n when Caridina::Events::PowerLevels\n # some authorization changed\n when Caridina::Events::Message\n # someone talked\n else\n # unknown event\n end\n end\nend\n```\n\nSometimes the event's content can be polymorphic too.\nThat is especially the case for message events.\nBy using again a `case` clause to `event.content` you can restrict its type to access all its fields.\n\n### Send events\n\nThere is not a single method to send an event.\nInstead this library provides a set of methods that correspond to different\nactions you may want to do.\nYou usually do not need to worry about crafting the event to send.\n\n> :warning: This part is in a early stage.\n> Only a few methods are currently provided.\n\n```Crystal\n# join a room\nconn.join(\"!room_id:matrix.org\")\n# send a message\nevent_id = conn.send_message(\"!room_id:matrix.org\", \"Hello, world!\")\n# edit a message\nconn.edit_message(\"!room_id:matrix.org\", event_id, \"Hello, world!\")\n# send a read receipt\nconn.send_receipt(\"!room_id:matrix.org\", \"$event_id:matrix.org\")\n# Use the typing notification as a loader\nconn.typing(\"!room_id:matrix.org\") do\n # Do some processing.\n # While we are in the block, a typing notification will be shown on the given\n # room.\n conn.send_message(\"!room_id:matrix.org\", \"All done!\")\nend\n```\n\n## Development\n\nInstall the dependencies with `shards install`.\n\n* `make test` runs the tests\n* `make lint` runs the formater plus a linter\n\n## Contributing\n\n1. Fork it (JSON::Serializable::use_json_discriminator
on steroids.
A Matrix connection.
","class_methods":[{"id":"login(hs_url:String,user_id:String,password:String):String-class-method","html_id":"login(hs_url:String,user_id:String,password:String):String-class-method","name":"login","doc":"Logs in using to a given homeserver and returns the access token.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login)","summary":"Logs in using to a given homeserver and returns the access token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"args_string":"(hs_url : String, user_id : String, password : String) : String","args_html":"(hs_url : String, user_id : String, password : String) : String","location":{"filename":"src/caridina/connection.cr","line_number":49,"url":null},"def":{"name":"login","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"user_id","doc":null,"default_value":"","external_name":"user_id","restriction":"String"},{"name":"password","doc":null,"default_value":"","external_name":"password","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"data = {type: \"m.login.password\", identifier: {type: \"m.id.user\", user: user_id}, password: password}\nresponse = HTTP::Client.post(\"#{hs_url}/_matrix/client/r0/login\", headers: HTTP::Headers {\"Content-Type\" => \"application/json\"}, body: data.to_json)\nif !response.success?\n raise(Exception.new(\"Error with status_code #{response.status_code}\"))\nend\ndata = Hash(String, String).from_json(response.body)\ndata[\"access_token\"]\n"}}],"constructors":[{"id":"new(hs_url:String,access_token:String)-class-method","html_id":"new(hs_url:String,access_token:String)-class-method","name":"new","doc":"Create a new connection object using an access_token.","summary":"Create a new connection object using an access_token.
","abstract":false,"args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"args_string":"(hs_url : String, access_token : String)","args_html":"(hs_url : String, access_token : String)","location":{"filename":"src/caridina/connection.cr","line_number":73,"url":null},"def":{"name":"new","args":[{"name":"hs_url","doc":null,"default_value":"","external_name":"hs_url","restriction":"String"},{"name":"access_token","doc":null,"default_value":"","external_name":"access_token","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(hs_url, access_token)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"create_filter(filter):String-instance-method","html_id":"create_filter(filter):String-instance-method","name":"create_filter","doc":"Creates a sync filter and returns its id.\n\nThe *filter* parameter must be a JSON serializable object.\n\nTODO: This should be implement with a proper model object.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-user-userid-filter)","summary":"Creates a sync filter and returns its id.
","abstract":false,"args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"args_string":"(filter) : String","args_html":"(filter) : String","location":{"filename":"src/caridina/connection.cr","line_number":90,"url":null},"def":{"name":"create_filter","args":[{"name":"filter","doc":null,"default_value":"","external_name":"filter","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = post(\"/user/#{@user_id}/filter\", filter)\nresponse = Responses::Filter.from_json(response)\nresponse.filter_id\n"}},{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":"Edits a message.\n\nOnly `m.text` messages are supported for now.","summary":"Edits a message.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":106,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"tx_id = get_tx_id\ndata = Events::Message::MSC2676::Text.new(message, html, event_id)\nput(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", data)\n"}},{"id":"join(room_id):Nil-instance-method","html_id":"join(room_id):Nil-instance-method","name":"join","doc":"Joins a room.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-join)","summary":"Joins a room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"args_string":"(room_id) : Nil","args_html":"(room_id) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":99,"url":null},"def":{"name":"join","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/join\")"}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":"Sends a message to a given room.\n\nOnly `m.text` messages are supported for now.","summary":"Sends a message to a given room.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":115,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"tx_id = get_tx_id\npayload = Events::Message::Text.new(message, html)\ndata = put(\"/rooms/#{room_id}/send/m.room.message/#{tx_id}\", payload)\n(Responses::Send.from_json(data)).event_id\n"}},{"id":"sync(channel:Channel(Responses::Sync))-instance-method","html_id":"sync(channel:Channel(Responses::Sync))-instance-method","name":"sync","doc":"Starts syncing.\n\nThis method starts a new fiber wich will run sync queries, and send received\nevents in *channel*.\n\nIt uses a filter to limit the received events to supported ones.\n\nWhen called, it will first do an inital sync.\nThis first sync may return events you already seen in a previous sync.\nYou should handle this in your code, either by skipping the first sync or\nby storing the id of the events you processed.\n\nTODO: accept an *next_batch* parameter to skip the initial sync.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-sync)","summary":"Starts syncing.
","abstract":false,"args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"args_string":"(channel : Channel(Responses::Sync))","args_html":"(channel : Channel(Responses::Sync))","location":{"filename":"src/caridina/connection.cr","line_number":138,"url":null},"def":{"name":"sync","args":[{"name":"channel","doc":null,"default_value":"","external_name":"channel","restriction":"Channel(Responses::Sync)"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"if @syncing\n raise(Exception.new(\"Already syncing\"))\nend\nfilter = {account_data: {types: [] of String}, presence: {types: [] of String}, room: {account_data: {types: [] of String}, ephemeral: {types: [] of String}, timeline: {lazy_load_members: true}, state: {lazy_load_members: true}}}\nfilter_id = create_filter(filter)\nspawn do\n next_batch = nil\n loop do\n begin\n if next_batch.nil?\n response = get(\"/sync\", is_sync: true, filter: filter_id)\n else\n response = get(\"/sync\", is_sync: true, filter: filter_id, since: next_batch, timeout: 300000)\n end\n rescue ex : ExecError\n Log.error(exception: ex) do\n \"Error while syncing, waiting 10s before retry\"\n end\n sleep(10)\n next\n end\n sync = Responses::Sync.from_json(response)\n next_batch = sync.next_batch\n channel.send(sync)\n end\nend\n"}},{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":"Returns the connected account's user_id.","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":44,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}},{"id":"whoami:String-instance-method","html_id":"whoami:String-instance-method","name":"whoami","doc":"Returns the connected account's user_id.\n\nYou probably should use `user_id` which already store that information.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-account-whoami)","summary":"Returns the connected account's user_id.
","abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/connection.cr","line_number":186,"url":null},"def":{"name":"whoami","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"response = get(\"/account/whoami\")\nresponse = Responses::WhoAmI.from_json(response)\nresponse.user_id\n"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/ConnectionInterface","path":"Caridina/ConnectionInterface.html","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"Interface that represents a Matrix connection.","summary":"Interface that represents a Matrix connection.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","html_id":"edit_message(room_id:String,event_id:String,message:String,html:String?=nil):Nil-instance-method","name":"edit_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","args_html":"(room_id : String, event_id : String, message : String, html : String? = nil) : Nil","location":{"filename":"src/caridina/connection.cr","line_number":15,"url":null},"def":{"name":"edit_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":""}},{"id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","html_id":"send_message(room_id:String,message:String,html:String?=nil):String-instance-method","name":"send_message","doc":null,"summary":null,"abstract":true,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"args_string":"(room_id : String, message : String, html : String? = nil) : String","args_html":"(room_id : String, message : String, html : String? = nil) : String","location":{"filename":"src/caridina/connection.cr","line_number":16,"url":null},"def":{"name":"send_message","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"message","doc":null,"default_value":"","external_name":"message","restriction":"String"},{"name":"html","doc":null,"default_value":"nil","external_name":"html","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":""}}],"macros":[],"types":[{"html_id":"caridina/Caridina/ConnectionInterface/ExecError","path":"Caridina/ConnectionInterface/ExecError.html","kind":"class","full_name":"Caridina::ConnectionInterface::ExecError","name":"ExecError","abstract":false,"superclass":{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"caridina/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/ConnectionInterface","kind":"module","full_name":"Caridina::ConnectionInterface","name":"ConnectionInterface"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Errors","path":"Caridina/Errors.html","kind":"module","full_name":"Caridina::Errors","name":"Errors","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Errors/RateLimited","path":"Caridina/Errors/RateLimited.html","kind":"struct","full_name":"Caridina::Errors::RateLimited","name":"RateLimited","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Errors","kind":"module","full_name":"Caridina::Errors","name":"Errors"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(payload)-class-method","html_id":"new(payload)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"args_string":"(payload)","args_html":"(payload)","location":{"filename":"src/caridina/errors.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"payload","doc":null,"default_value":"","external_name":"payload","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(payload)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[{"id":"retry_after_ms:Int32-instance-method","html_id":"retry_after_ms:Int32-instance-method","name":"retry_after_ms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int32","args_html":" : Int32","location":{"filename":"src/caridina/errors.cr","line_number":4,"url":null},"def":{"name":"retry_after_ms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int32","visibility":"Public","body":"@retry_after_ms"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events","path":"Caridina/Events.html","kind":"module","full_name":"Caridina::Events","name":"Events","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[{"id":"make_content(*fields)-macro","html_id":"make_content(*fields)-macro","name":"make_content","doc":null,"summary":null,"abstract":false,"args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(*fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":241,"url":null},"def":{"name":"make_content","args":[{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":0,"block_arg":null,"visibility":"Public","body":" class Content\n include JSON::Serializable\n\n Caridina::Events.make_relates_to\n\n \n{% for field in fields %}\n getter {{ field.id }}\n {% end %}\n\n \nend\n\n getter content : Content\n \n"}},{"id":"make_redacted(name,type,fields,superclass)-macro","html_id":"make_redacted(name,type,fields,superclass)-macro","name":"make_redacted","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"args_string":"(name, type, fields, superclass)","location":{"filename":"src/caridina/events/macros.cr","line_number":255,"url":null},"def":{"name":"make_redacted","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n{% redaction_allowed_fields = {\"event_id\", \"type\", \"room_id\", \"sender\", \"state_key\", \"content\", \"hashes\", \"signatures\", \"depth\", \"prev_events\", \"prev_state\", \"auth_events\", \"origin\", \"origin_server_ts\", \"membership\"} %}\n\n\n class Redacted\n{{ name.id }}\n < \n{{ superclass }}\n\n struct Content\n include JSON::Serializable\n include JSON::Serializable::Strict\n\n \n{% if type == \"m.room.member\" %}\n getter membership : Member::Membership\n {% else %}{% if type == \"m.room.create\" %}\n getter creator : String\n {% else %}{% if type == \"m.room.join_rules\" %}\n getter join_rule : JoinRules::JoinRule\n {% else %}{% if type == \"m.room.power_levels\" %}\n getter ban = 50_u8\n getter events = Hash(String, UInt8).new\n getter events_default = 0_u8\n getter kick = 50_u8\n getter redact = 50_u8\n getter states_default = 50_u8\n getter users = Hash(String, UInt8).new\n getter users_default = 0_i8\n {% end %}{% end %}{% end %}{% end %}\n\n \nend\n\n\n \n{% for field in fields %}\n {% if field.is_a?(TypeDeclaration) %}\n {% name = field.var %}\n {% else %}{% if field.is_a?(Assign) %}\n {% name = field.target %}\n {% else %}\n {% raise(\"Unhandled field #{field}\") %}\n {% end %}{% end %}\n\n {% if redaction_allowed_fields.includes?(name.stringify) %}\n getter {{ field.id }}\n {% end %}\n {% end %}\n\n\n getter content : Content\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_relates_to-macro","html_id":"make_relates_to-macro","name":"make_relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":211,"url":null},"def":{"name":"make_relates_to","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" \n# Represents a relation to another event.\n\n \n#\n\n \n# [Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)\n\n struct RelatesTo\n include JSON::Serializable\n\n getter rel_type : String?\n getter \nevent_id : String?\n\n def initialize(@rel_type, @event_id)\n \nend\n \nend\n\n \n# This implements MSC2674 (event relationships).\n\n \n#\n\n \n# [Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2674)\n\n @[JSON::Field(key: \"m.relates_to\")]\n getter relates_to : RelatesTo?\n \n"}},{"id":"make_room_event(name,type,*fields,superclass=nil)-macro","html_id":"make_room_event(name,type,*fields,superclass=nil)-macro","name":"make_room_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"args_string":"(name, type, *fields, superclass = nil)","location":{"filename":"src/caridina/events/macros.cr","line_number":323,"url":null},"def":{"name":"make_room_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""},{"name":"superclass","doc":null,"default_value":"nil","external_name":"superclass","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" @[Type(\n{{ type }}\n)]\n \n{% if !superclass %}\n {% superclass = RoomEvent %}\n {% end %}\n\n class \n{{ name.id }}\n < \n{{ superclass }}\n\n Caridina::Events.make_content(\n{{ *fields }}\n)\n Caridina::Events.make_unsigned_data\n\n getter \nevent_id : String\n getter origin_server_ts : UInt64\n getter sender : String\n getter type : String\n getter unsigned : UnsignedData?\n\n \n# Can be null if we are in a context where the room's id is known (e.g. in a sync event).\n\n property room_id : String?\n\n \n{{ yield }}\n\n \nend\n\n make_redacted(\n{{ name.id }}\n, \n{{ type }}\n, \n{{ fields }}\n, \n{{ superclass }}\n)\n \n"}},{"id":"make_state_event(name,type,*fields)-macro","html_id":"make_state_event(name,type,*fields)-macro","name":"make_state_event","doc":null,"summary":null,"abstract":false,"args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"args_string":"(name, type, *fields)","location":{"filename":"src/caridina/events/macros.cr","line_number":347,"url":null},"def":{"name":"make_state_event","args":[{"name":"name","doc":null,"default_value":"","external_name":"name","restriction":""},{"name":"type","doc":null,"default_value":"","external_name":"type","restriction":""},{"name":"fields","doc":null,"default_value":"","external_name":"fields","restriction":""}],"double_splat":null,"splat_index":2,"block_arg":null,"visibility":"Public","body":" Caridina::Events.make_room_event(\n{{ name }}\n, \n{{ type }}\n, \n{{ *fields }}\n, superclass: StateEvent) do\n getter state_key : String\n\n \n{{ yield }}\n\n \nend\n\n class Stripped\n{{ name }}\n < StrippedState\n getter content : \n{{ name.id }}\n::Content\n getter sender : String\n getter state_key : String\n getter type : String\n\n property room_id : String?\n \nend\n \n"}},{"id":"make_unsigned_data-macro","html_id":"make_unsigned_data-macro","name":"make_unsigned_data","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","location":{"filename":"src/caridina/events/macros.cr","line_number":232,"url":null},"def":{"name":"make_unsigned_data","args":[],"double_splat":null,"splat_index":null,"block_arg":null,"visibility":"Public","body":" struct UnsignedData\n include JSON::Serializable\n\n getter age : Int64\n getter transaction_id : String?\n \nend\n \n"}}],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","path":"Caridina/Events/CanonicalAlias.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","path":"Caridina/Events/CanonicalAlias/Content.html","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"alias:String?-instance-method","html_id":"alias:String?-instance-method","name":"alias","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"alias","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@alias"}},{"id":"alt_aliases:Array(String)-instance-method","html_id":"alt_aliases:Array(String)-instance-method","name":"alt_aliases","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)","args_html":" : Array(String)","location":null,"def":{"name":"alt_aliases","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String)","visibility":"Public","body":"@alt_aliases"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content/RelatesTo","path":"Caridina/Events/CanonicalAlias/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias/Content","kind":"class","full_name":"Caridina::Events::CanonicalAlias::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/CanonicalAlias/UnsignedData","path":"Caridina/Events/CanonicalAlias/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::CanonicalAlias::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create","path":"Caridina/Events/Create.html","kind":"class","full_name":"Caridina::Events::Create","name":"Create","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content","path":"Caridina/Events/Create/Content.html","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}},{"id":"m_federate:Bool-instance-method","html_id":"m_federate:Bool-instance-method","name":"m_federate","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool","args_html":" : Bool","location":{"filename":"src/caridina/events/state_events.cr","line_number":67,"url":null},"def":{"name":"m_federate","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@m_federate"}},{"id":"predecessor:PreviousRoom?-instance-method","html_id":"predecessor:PreviousRoom?-instance-method","name":"predecessor","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PreviousRoom?","args_html":" : PreviousRoom?","location":null,"def":{"name":"predecessor","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PreviousRoom | ::Nil","visibility":"Public","body":"@predecessor"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"room_version:String-instance-method","html_id":"room_version:String-instance-method","name":"room_version","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"room_version","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_version"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Create/Content/RelatesTo","path":"Caridina/Events/Create/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Create::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create/Content","kind":"class","full_name":"Caridina::Events::Create::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Create/PreviousRoom","path":"Caridina/Events/Create/PreviousRoom.html","kind":"struct","full_name":"Caridina::Events::Create::PreviousRoom","name":"PreviousRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":59,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":62,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"room_id:String-instance-method","html_id":"room_id:String-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":60,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@room_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Create/UnsignedData","path":"Caridina/Events/Create/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Create::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Event","path":"Caridina/Events/Event.html","kind":"class","full_name":"Caridina::Events::Event","name":"Event","abstract":true,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Unknown","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Base type representing an event.\n\nAll types returned by the `Caridina::Connection::Sync` method will be\nof this type.\nYou can then match the returned event type against known types to be able\nto use all the event's field.\n\nIf the event is unknown, it returns nil.","summary":"Base type representing an event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":17,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n begin\n return CanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCanonicalAlias.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.create\"\n begin\n return Create.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedCreate.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.join_rules\"\n begin\n return JoinRules.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedJoinRules.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.member\"\n begin\n return Member.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMember.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.power_levels\"\n begin\n return PowerLevels.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedPowerLevels.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.redaction\"\n begin\n return Redaction.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedRedaction.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n when \"m.room.message\"\n begin\n return Message.from_json(json)\n rescue JSON::SerializableError\n begin\n return RedactedMessage.from_json(json)\n rescue JSON::SerializableError\n raise(JSON::SerializableError.new(\"No type can deserialize the given JSON. The key used was #{key}\", to_s, nil, *location, nil))\n end\n end\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules","path":"Caridina/Events/JoinRules.html","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content","path":"Caridina/Events/JoinRules/Content.html","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRule-instance-method","html_id":"join_rule:JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRule","args_html":" : JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRule","visibility":"Public","body":"@join_rule"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/JoinRules/Content/RelatesTo","path":"Caridina/Events/JoinRules/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::JoinRules::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules/Content","kind":"class","full_name":"Caridina::Events::JoinRules::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/JoinRules/JoinRule","path":"Caridina/Events/JoinRules/JoinRule.html","kind":"enum","full_name":"Caridina::Events::JoinRules::JoinRule","name":"JoinRule","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Public","name":"Public","value":"0","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"1","doc":null,"summary":null},{"id":"Invite","name":"Invite","value":"2","doc":null,"summary":null},{"id":"Private","name":"Private","value":"3","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":82,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":81,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"private?-instance-method","html_id":"private?-instance-method","name":"private?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":83,"url":null},"def":{"name":"private?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Private"}},{"id":"public?-instance-method","html_id":"public?-instance-method","name":"public?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":80,"url":null},"def":{"name":"public?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Public"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/JoinRules/UnsignedData","path":"Caridina/Events/JoinRules/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::JoinRules::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member","path":"Caridina/Events/Member.html","kind":"class","full_name":"Caridina::Events::Member","name":"Member","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content","path":"Caridina/Events/Member/Content.html","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"avatar_url:String?-instance-method","html_id":"avatar_url:String?-instance-method","name":"avatar_url","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"avatar_url","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@avatar_url"}},{"id":"displayname:String?-instance-method","html_id":"displayname:String?-instance-method","name":"displayname","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"displayname","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@displayname"}},{"id":"is_direct:Bool?-instance-method","html_id":"is_direct:Bool?-instance-method","name":"is_direct","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Bool?","args_html":" : Bool?","location":null,"def":{"name":"is_direct","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Bool | ::Nil","visibility":"Public","body":"@is_direct"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"third_party_invite:Invite?-instance-method","html_id":"third_party_invite:Invite?-instance-method","name":"third_party_invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Invite?","args_html":" : Invite?","location":null,"def":{"name":"third_party_invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Invite | ::Nil","visibility":"Public","body":"@third_party_invite"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Member/Content/RelatesTo","path":"Caridina/Events/Member/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Member::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member/Content","kind":"class","full_name":"Caridina::Events::Member::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Member/Invite","path":"Caridina/Events/Member/Invite.html","kind":"struct","full_name":"Caridina::Events::Member::Invite","name":"Invite","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":108,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"display_name:String-instance-method","html_id":"display_name:String-instance-method","name":"display_name","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":109,"url":null},"def":{"name":"display_name","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@display_name"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/Membership","path":"Caridina/Events/Member/Membership.html","kind":"enum","full_name":"Caridina::Events::Member::Membership","name":"Membership","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Invite","name":"Invite","value":"0","doc":null,"summary":null},{"id":"Join","name":"Join","value":"1","doc":null,"summary":null},{"id":"Knock","name":"Knock","value":"2","doc":null,"summary":null},{"id":"Leave","name":"Leave","value":"3","doc":null,"summary":null},{"id":"Ban","name":"Ban","value":"4","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"ban?-instance-method","html_id":"ban?-instance-method","name":"ban?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":104,"url":null},"def":{"name":"ban?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Ban"}},{"id":"invite?-instance-method","html_id":"invite?-instance-method","name":"invite?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":100,"url":null},"def":{"name":"invite?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Invite"}},{"id":"join?-instance-method","html_id":"join?-instance-method","name":"join?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":101,"url":null},"def":{"name":"join?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Join"}},{"id":"knock?-instance-method","html_id":"knock?-instance-method","name":"knock?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":102,"url":null},"def":{"name":"knock?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Knock"}},{"id":"leave?-instance-method","html_id":"leave?-instance-method","name":"leave?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/events/state_events.cr","line_number":103,"url":null},"def":{"name":"leave?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Leave"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Member/UnsignedData","path":"Caridina/Events/Member/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Member::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"invite_room_state:Array(StrippedState)?-instance-method","html_id":"invite_room_state:Array(StrippedState)?-instance-method","name":"invite_room_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(StrippedState)?","args_html":" : Array(StrippedState)?","location":{"filename":"src/caridina/events/state_events.cr","line_number":114,"url":null},"def":{"name":"invite_room_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(StrippedState) | ::Nil","visibility":"Public","body":"@invite_room_state"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message","path":"Caridina/Events/Message.html","kind":"class","full_name":"Caridina::Events::Message","name":"Message","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content","path":"Caridina/Events/Message/Content.html","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Unknown","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content.\n\nThis event's content can have different fields according to its field\n`msgtype`.\nEach available content is represent by its own type.\nTo know which message event you are dealing with, you can use a case clause\nover the content's type.\n\n```\ncase event.content\nwhen Caridina::Events::Message::Text\n # handle a message\nwhen Caridina::Events::Message::MSC2676::Text\n # handle a message edit\nwhen Caridina::Events::Message::Unknown\n # Unknown message type, but you can still inspect `event.content.body` and\n # `event.content.msgtype`.\nelse\n # fallback\nend\n```\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message)","summary":"Represents a m.room.message event's content.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":32,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"msgtype\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n when \"m.relates_to\"\n field_name = [\"m.relates_to\"]\n builder.field(key) do\n builder.start_object\n pull.read_object do |key|\n case key\n when \"rel_type\"\n field_name << \"rel_type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {field_name, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"msgtype\", [\"m.relates_to\", \"rel_type\"]]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"msgtype\"\n key = \"\\\"msgtype\\\"\"\n case discriminator_value\n when \"m.text\"\n return Text.from_json(json)\n end\n when [\"m.relates_to\", \"rel_type\"]\n key = \"[\\\"m.relates_to\\\", \\\"rel_type\\\"]\"\n case discriminator_value\n when \"m.replace\"\n return MSC2676::Dispatcher.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nUnknown.from_json(json)\n"}}],"instance_methods":[{"id":"body:String-instance-method","html_id":"body:String-instance-method","name":"body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@body"}},{"id":"msgtype:String-instance-method","html_id":"msgtype:String-instance-method","name":"msgtype","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"msgtype","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@msgtype"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/Content/RelatesTo","path":"Caridina/Events/Message/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Message::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/MSC2676","path":"Caridina/Events/Message/MSC2676.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Implements MSC2676 (message editing).\n\n[Matrix MSC](https://github.com/matrix-org/matrix-doc/pull/2676)","summary":"Implements MSC2676 (message editing).
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","path":"Caridina/Events/Message/MSC2676/Content.html","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"new_content:Events::Message::Content-instance-method","html_id":"new_content:Events::Message::Content-instance-method","name":"new_content","doc":"Returns the content that will replace the previous message's content.\n\nLike a message's content, this new content can vary and you should use\na case clause to know what it is.","summary":"Returns the content that will replace the previous message's content.
","abstract":false,"args":[],"args_string":" : Events::Message::Content","args_html":" : Events::Message::Content","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":82,"url":null},"def":{"name":"new_content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Events::Message::Content","visibility":"Public","body":"@new_content"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","path":"Caridina/Events/Message/MSC2676/Text.html","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"},{"html_id":"caridina/Caridina/Events/Message/Text","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text"},{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Content","kind":"module","full_name":"Caridina::Events::Message::MSC2676::Content","name":"Content"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message/MSC2676","kind":"module","full_name":"Caridina::Events::Message::MSC2676","name":"MSC2676"},"doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","class_methods":[],"constructors":[{"id":"new(body,formatted_body,event_id)-class-method","html_id":"new(body,formatted_body,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(body, formatted_body, event_id)","args_html":"(body, formatted_body, event_id)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":88,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an edit message text content.","summary":"Represents an edit message text content.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":86,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Message/Text","path":"Caridina/Events/Message/Text.html","kind":"class","full_name":"Caridina::Events::Message::Text","name":"Text","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message/MSC2676/Text","kind":"class","full_name":"Caridina::Events::Message::MSC2676::Text","name":"Text"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","class_methods":[],"constructors":[{"id":"new(body,formatted_body,format="org.matrix.custom.html")-class-method","html_id":"new(body,formatted_body,format="org.matrix.custom.html")-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"format","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"format","restriction":""}],"args_string":"(body, formatted_body, format = "org.matrix.custom.html")","args_html":"(body, formatted_body, format = "org.matrix.custom.html")","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":49,"url":null},"def":{"name":"new","args":[{"name":"body","doc":null,"default_value":"","external_name":"body","restriction":""},{"name":"formatted_body","doc":null,"default_value":"","external_name":"formatted_body","restriction":""},{"name":"format","doc":null,"default_value":"\"org.matrix.custom.html\"","external_name":"format","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(body, formatted_body, format)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.message event's content of type m.text.","summary":"Represents a m.room.message event's content of type m.text.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":46,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"format:String?-instance-method","html_id":"format:String?-instance-method","name":"format","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":47,"url":null},"def":{"name":"format","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@format"}},{"id":"formatted_body:String?-instance-method","html_id":"formatted_body:String?-instance-method","name":"formatted_body","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":48,"url":null},"def":{"name":"formatted_body","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@formatted_body"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/Unknown","path":"Caridina/Events/Message/Unknown.html","kind":"class","full_name":"Caridina::Events::Message::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},"ancestors":[{"html_id":"caridina/Caridina/Events/Message/Content","kind":"class","full_name":"Caridina::Events::Message::Content","name":"Content"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":"Represents an unknown event.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/modules/instant_messaging.cr","line_number":56,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Message/UnsignedData","path":"Caridina/Events/Message/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Message::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels","path":"Caridina/Events/PowerLevels.html","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content","path":"Caridina/Events/PowerLevels/Content.html","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"invite:UInt8-instance-method","html_id":"invite:UInt8-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@invite"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"notifications:Notifications?-instance-method","html_id":"notifications:Notifications?-instance-method","name":"notifications","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Notifications?","args_html":" : Notifications?","location":null,"def":{"name":"notifications","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Notifications | ::Nil","visibility":"Public","body":"@notifications"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/PowerLevels/Content/RelatesTo","path":"Caridina/Events/PowerLevels/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels/Content","kind":"class","full_name":"Caridina::Events::PowerLevels::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/PowerLevels/Notifications","path":"Caridina/Events/PowerLevels/Notifications.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::Notifications","name":"Notifications","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":136,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room:UInt8-instance-method","html_id":"room:UInt8-instance-method","name":"room","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":{"filename":"src/caridina/events/state_events.cr","line_number":137,"url":null},"def":{"name":"room","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/PowerLevels/UnsignedData","path":"Caridina/Events/PowerLevels/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::PowerLevels::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","path":"Caridina/Events/RedactedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias/Content","path":"Caridina/Events/RedactedCanonicalAlias/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCanonicalAlias::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedCreate","path":"Caridina/Events/RedactedCreate.html","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedCreate/Content","path":"Caridina/Events/RedactedCreate/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedCreate::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"creator:String-instance-method","html_id":"creator:String-instance-method","name":"creator","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"creator","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@creator"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","path":"Caridina/Events/RedactedJoinRules.html","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedJoinRules/Content","path":"Caridina/Events/RedactedJoinRules/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedJoinRules::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"join_rule:JoinRules::JoinRule-instance-method","html_id":"join_rule:JoinRules::JoinRule-instance-method","name":"join_rule","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::JoinRule","args_html":" : JoinRules::JoinRule","location":null,"def":{"name":"join_rule","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::JoinRule","visibility":"Public","body":"@join_rule"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMember","path":"Caridina/Events/RedactedMember.html","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMember/Content","path":"Caridina/Events/RedactedMember/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMember::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"membership:Member::Membership-instance-method","html_id":"membership:Member::Membership-instance-method","name":"membership","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Membership","args_html":" : Member::Membership","location":null,"def":{"name":"membership","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Membership","visibility":"Public","body":"@membership"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedMessage","path":"Caridina/Events/RedactedMessage.html","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedMessage/Content","path":"Caridina/Events/RedactedMessage/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedMessage::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","path":"Caridina/Events/RedactedPowerLevels.html","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"},{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedPowerLevels/Content","path":"Caridina/Events/RedactedPowerLevels/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedPowerLevels::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"ban:UInt8-instance-method","html_id":"ban:UInt8-instance-method","name":"ban","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"ban","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@ban"}},{"id":"events:Hash(String,UInt8)-instance-method","html_id":"events:Hash(String,UInt8)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events"}},{"id":"events_default:UInt8-instance-method","html_id":"events_default:UInt8-instance-method","name":"events_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"events_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@events_default"}},{"id":"kick:UInt8-instance-method","html_id":"kick:UInt8-instance-method","name":"kick","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"kick","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@kick"}},{"id":"redact:UInt8-instance-method","html_id":"redact:UInt8-instance-method","name":"redact","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"redact","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@redact"}},{"id":"states_default:UInt8-instance-method","html_id":"states_default:UInt8-instance-method","name":"states_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt8","args_html":" : UInt8","location":null,"def":{"name":"states_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@states_default"}},{"id":"users:Hash(String,UInt8)-instance-method","html_id":"users:Hash(String,UInt8)-instance-method","name":"users","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, UInt8)","args_html":" : Hash(String, UInt8)","location":null,"def":{"name":"users","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users"}},{"id":"users_default:Int8-instance-method","html_id":"users_default:Int8-instance-method","name":"users_default","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int8","args_html":" : Int8","location":null,"def":{"name":"users_default","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@users_default"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RedactedRedaction","path":"Caridina/Events/RedactedRedaction.html","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/RedactedRedaction/Content","path":"Caridina/Events/RedactedRedaction/Content.html","kind":"struct","full_name":"Caridina::Events::RedactedRedaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/JSON/Serializable/Strict","kind":"module","full_name":"JSON::Serializable::Strict","name":"Strict"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction","path":"Caridina/Events/Redaction.html","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Content-instance-method","html_id":"content:Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Content","args_html":" : Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Content","visibility":"Public","body":"@content"}},{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}},{"id":"origin_server_ts:UInt64-instance-method","html_id":"origin_server_ts:UInt64-instance-method","name":"origin_server_ts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UInt64","args_html":" : UInt64","location":null,"def":{"name":"origin_server_ts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UInt64","visibility":"Public","body":"@origin_server_ts"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":"Can be null if we are in a context where the room's id is known (e.g. in a sync event).","summary":"Can be null if we are in a context where the room's id is known (e.g.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}},{"id":"unsigned:UnsignedData?-instance-method","html_id":"unsigned:UnsignedData?-instance-method","name":"unsigned","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : UnsignedData?","args_html":" : UnsignedData?","location":null,"def":{"name":"unsigned","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"UnsignedData | ::Nil","visibility":"Public","body":"@unsigned"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content","path":"Caridina/Events/Redaction/Content.html","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"reason:String?-instance-method","html_id":"reason:String?-instance-method","name":"reason","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"reason","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@reason"}},{"id":"relates_to:RelatesTo?-instance-method","html_id":"relates_to:RelatesTo?-instance-method","name":"relates_to","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : RelatesTo?","args_html":" : RelatesTo?","location":null,"def":{"name":"relates_to","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"RelatesTo | ::Nil","visibility":"Public","body":"@relates_to"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Events/Redaction/Content/RelatesTo","path":"Caridina/Events/Redaction/Content/RelatesTo.html","kind":"struct","full_name":"Caridina::Events::Redaction::Content::RelatesTo","name":"RelatesTo","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction/Content","kind":"class","full_name":"Caridina::Events::Redaction::Content","name":"Content"},"doc":"Represents a relation to another event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#forming-relationships-between-events)","summary":"Represents a relation to another event.
","class_methods":[],"constructors":[{"id":"new(rel_type,event_id)-class-method","html_id":"new(rel_type,event_id)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"args_string":"(rel_type, event_id)","args_html":"(rel_type, event_id)","location":null,"def":{"name":"new","args":[{"name":"rel_type","doc":null,"default_value":"","external_name":"rel_type","restriction":""},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(rel_type, event_id)\nif _.responds_to?(:finalize)\n ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String?-instance-method","html_id":"event_id:String?-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@event_id"}},{"id":"rel_type:String?-instance-method","html_id":"rel_type:String?-instance-method","name":"rel_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"rel_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@rel_type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/Redaction/UnsignedData","path":"Caridina/Events/Redaction/UnsignedData.html","kind":"struct","full_name":"Caridina::Events::Redaction::UnsignedData","name":"UnsignedData","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"age:Int64-instance-method","html_id":"age:Int64-instance-method","name":"age","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64","args_html":" : Int64","location":null,"def":{"name":"age","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64","visibility":"Public","body":"@age"}},{"id":"transaction_id:String?-instance-method","html_id":"transaction_id:String?-instance-method","name":"transaction_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"transaction_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@transaction_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Events/RoomEvent","path":"Caridina/Events/RoomEvent.html","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/Message","kind":"class","full_name":"Caridina::Events::Message","name":"Message"},{"html_id":"caridina/Caridina/Events/RedactedMessage","kind":"class","full_name":"Caridina::Events::RedactedMessage","name":"RedactedMessage"},{"html_id":"caridina/Caridina/Events/RedactedRedaction","kind":"class","full_name":"Caridina::Events::RedactedRedaction","name":"RedactedRedaction"},{"html_id":"caridina/Caridina/Events/Redaction","kind":"class","full_name":"Caridina::Events::Redaction","name":"Redaction"},{"html_id":"caridina/Caridina/Events/StateEvent","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a room event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#room-events)","summary":"Represents a room event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/room_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StateEvent","path":"Caridina/Events/StateEvent.html","kind":"class","full_name":"Caridina::Events::StateEvent","name":"StateEvent","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},"ancestors":[{"html_id":"caridina/Caridina/Events/RoomEvent","kind":"class","full_name":"Caridina::Events::RoomEvent","name":"RoomEvent"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/CanonicalAlias","kind":"class","full_name":"Caridina::Events::CanonicalAlias","name":"CanonicalAlias"},{"html_id":"caridina/Caridina/Events/Create","kind":"class","full_name":"Caridina::Events::Create","name":"Create"},{"html_id":"caridina/Caridina/Events/JoinRules","kind":"class","full_name":"Caridina::Events::JoinRules","name":"JoinRules"},{"html_id":"caridina/Caridina/Events/Member","kind":"class","full_name":"Caridina::Events::Member","name":"Member"},{"html_id":"caridina/Caridina/Events/PowerLevels","kind":"class","full_name":"Caridina::Events::PowerLevels","name":"PowerLevels"},{"html_id":"caridina/Caridina/Events/RedactedCanonicalAlias","kind":"class","full_name":"Caridina::Events::RedactedCanonicalAlias","name":"RedactedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/RedactedCreate","kind":"class","full_name":"Caridina::Events::RedactedCreate","name":"RedactedCreate"},{"html_id":"caridina/Caridina/Events/RedactedJoinRules","kind":"class","full_name":"Caridina::Events::RedactedJoinRules","name":"RedactedJoinRules"},{"html_id":"caridina/Caridina/Events/RedactedMember","kind":"class","full_name":"Caridina::Events::RedactedMember","name":"RedactedMember"},{"html_id":"caridina/Caridina/Events/RedactedPowerLevels","kind":"class","full_name":"Caridina::Events::RedactedPowerLevels","name":"RedactedPowerLevels"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a state event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#state-event-fields)","summary":"Represents a state event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":5,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","path":"Caridina/Events/StrippedCanonicalAlias.html","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.canonical_alias event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-canonical-alias)","summary":"Represents a m.room.canonical_alias event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:CanonicalAlias::Content-instance-method","html_id":"content:CanonicalAlias::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : CanonicalAlias::Content","args_html":" : CanonicalAlias::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"CanonicalAlias::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedCreate","path":"Caridina/Events/StrippedCreate.html","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.create event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-create)","summary":"Represents a m.room.create event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Create::Content-instance-method","html_id":"content:Create::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Create::Content","args_html":" : Create::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Create::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","path":"Caridina/Events/StrippedJoinRules.html","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.join_rules event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-join-rules)","summary":"Represents a m.room.join_rules event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:JoinRules::Content-instance-method","html_id":"content:JoinRules::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : JoinRules::Content","args_html":" : JoinRules::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"JoinRules::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedMember","path":"Caridina/Events/StrippedMember.html","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.member event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-member)","summary":"Represents a m.room.member event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:Member::Content-instance-method","html_id":"content:Member::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Member::Content","args_html":" : Member::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Member::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","path":"Caridina/Events/StrippedPowerLevels.html","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a m.room.power_levels event.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#m-room-power-levels)","summary":"Represents a m.room.power_levels event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":null,"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"content:PowerLevels::Content-instance-method","html_id":"content:PowerLevels::Content-instance-method","name":"content","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : PowerLevels::Content","args_html":" : PowerLevels::Content","location":null,"def":{"name":"content","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"PowerLevels::Content","visibility":"Public","body":"@content"}},{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":null,"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":null,"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":null,"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedState","path":"Caridina/Events/StrippedState.html","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState","abstract":true,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Events/StrippedCanonicalAlias","kind":"class","full_name":"Caridina::Events::StrippedCanonicalAlias","name":"StrippedCanonicalAlias"},{"html_id":"caridina/Caridina/Events/StrippedCreate","kind":"class","full_name":"Caridina::Events::StrippedCreate","name":"StrippedCreate"},{"html_id":"caridina/Caridina/Events/StrippedJoinRules","kind":"class","full_name":"Caridina::Events::StrippedJoinRules","name":"StrippedJoinRules"},{"html_id":"caridina/Caridina/Events/StrippedMember","kind":"class","full_name":"Caridina::Events::StrippedMember","name":"StrippedMember"},{"html_id":"caridina/Caridina/Events/StrippedPowerLevels","kind":"class","full_name":"Caridina::Events::StrippedPowerLevels","name":"StrippedPowerLevels"},{"html_id":"caridina/Caridina/Events/StrippedUnknown","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents a StrippedState event.\n\nIt is used in `Member` event and in `Responses::Sync` in invited rooms' state.\nIt contains a subset of state events' fields.\n\nThis type is used to represents many distinct stripped state events. See\nsubtypes.","summary":"Represents a StrippedState event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":16,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"location = pull.location\ndiscriminators = Array(Tuple(String | Array(String), String)).new\njson = String.build do |io|\n JSON.build(io) do |builder|\n builder.start_object\n pull.read_object do |key|\n case key\n when \"type\"\n value = pull.read_string\n builder.field(key, value)\n discriminators << {key, value}\n else\n builder.field(key) do\n pull.read_raw(builder)\n end\n end\n end\n builder.end_object\n end\nend\nfields = [\"type\"]\nif discriminators.size\nelse\n raise(::JSON::SerializableError.new(\"JSON is missing one of discriminator fields: #{fields}\", to_s, nil, *location, nil))\nend\ndiscriminators.sort_by! do |x|\n (fields.index(x[0])) || 0\nend.reverse!\ndiscriminators.each do |field_name, discriminator_value|\n case field_name\n when \"type\"\n key = \"\\\"type\\\"\"\n case discriminator_value\n when \"m.room.canonical_alias\"\n return StrippedCanonicalAlias.from_json(json)\n when \"m.room.create\"\n return StrippedCreate.from_json(json)\n when \"m.room.join_rules\"\n return StrippedJoinRules.from_json(json)\n when \"m.room.member\"\n return StrippedMember.from_json(json)\n when \"m.room.power_levels\"\n return StrippedPowerLevels.from_json(json)\n end\n else\n raise(Exception.new(\"This can't happen\"))\n end\nend\nStrippedUnknown.from_json(json)\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/StrippedUnknown","path":"Caridina/Events/StrippedUnknown.html","kind":"class","full_name":"Caridina::Events::StrippedUnknown","name":"StrippedUnknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},"ancestors":[{"html_id":"caridina/Caridina/Events/StrippedState","kind":"class","full_name":"Caridina::Events::StrippedState","name":"StrippedState"},{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/state_events.cr","line_number":30,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"room_id:String?-instance-method","html_id":"room_id:String?-instance-method","name":"room_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","args_html":" : String?","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@room_id"}},{"id":"room_id=(room_id:String?)-instance-method","html_id":"room_id=(room_id:String?)-instance-method","name":"room_id=","doc":null,"summary":null,"abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"args_string":"(room_id : String?)","args_html":"(room_id : String?)","location":{"filename":"src/caridina/events/state_events.cr","line_number":35,"url":null},"def":{"name":"room_id=","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@room_id = room_id"}},{"id":"sender:String-instance-method","html_id":"sender:String-instance-method","name":"sender","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":31,"url":null},"def":{"name":"sender","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@sender"}},{"id":"state_key:String-instance-method","html_id":"state_key:String-instance-method","name":"state_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":32,"url":null},"def":{"name":"state_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@state_key"}},{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/state_events.cr","line_number":33,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Type","path":"Caridina/Events/Type.html","kind":"annotation","full_name":"Caridina::Events::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Use this annotation to specify the event's type.","summary":"Use this annotation to specify the event's type.
","class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Events/Unknown","path":"Caridina/Events/Unknown.html","kind":"class","full_name":"Caridina::Events::Unknown","name":"Unknown","abstract":false,"superclass":{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},"ancestors":[{"html_id":"caridina/Caridina/Events/Event","kind":"class","full_name":"Caridina::Events::Event","name":"Event"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Events","kind":"module","full_name":"Caridina::Events","name":"Events"},"doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":"Represents an unknown event.\n\nThe content will alway be nil.","summary":"Represents an unknown event.
","abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/events/base.cr","line_number":36,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"type:String-instance-method","html_id":"type:String-instance-method","name":"type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/events/base.cr","line_number":37,"url":null},"def":{"name":"type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@type"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Modules","path":"Caridina/Modules.html","kind":"module","full_name":"Caridina::Modules","name":"Modules","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts","path":"Caridina/Modules/Receipts.html","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[{"html_id":"caridina/Caridina/Connection","kind":"class","full_name":"Caridina::Connection","name":"Connection"}],"namespace":{"html_id":"caridina/Caridina/Modules","kind":"module","full_name":"Caridina::Modules","name":"Modules"},"doc":"[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#id53)","summary":"","class_methods":[],"constructors":[],"instance_methods":[{"id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","html_id":"send_receipt(room_id:String,event_id:String,type=Type::Read):Nil-instance-method","name":"send_receipt","doc":"Sends a receipt.\n\nThe only available type so far is a read receipt.\n\n[Matrix API](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid)","summary":"Sends a receipt.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"args_string":"(room_id : String, event_id : String, type = Type::Read) : Nil","args_html":"(room_id : String, event_id : String, type = Type::Read) : Nil","location":{"filename":"src/caridina/modules/receipts.cr","line_number":19,"url":null},"def":{"name":"send_receipt","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"event_id","doc":null,"default_value":"","external_name":"event_id","restriction":"String"},{"name":"type","doc":null,"default_value":"Type::Read","external_name":"type","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"post(\"/rooms/#{room_id}/receipt/#{type}/#{event_id}\")"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Modules/Receipts/Type","path":"Caridina/Modules/Receipts/Type.html","kind":"enum","full_name":"Caridina::Modules::Receipts::Type","name":"Type","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"Read","name":"Read","value":"0","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Modules/Receipts","kind":"module","full_name":"Caridina::Modules::Receipts","name":"Receipts"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"read?-instance-method","html_id":"read?-instance-method","name":"read?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/modules/receipts.cr","line_number":4,"url":null},"def":{"name":"read?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self == Read"}},{"id":"to_s-instance-method","html_id":"to_s-instance-method","name":"to_s","doc":"Returns a `String` representation of this enum member.\nIn the case of regular enums, this is just the name of the member.\nIn the case of flag enums, it's the names joined by vertical bars, or \"None\",\nif the value is zero.\n\nIf an enum's value doesn't match a member's value, the raw value\nis returned as a string.\n\n```\nColor::Red.to_s # => \"Red\"\nIOMode::None.to_s # => \"None\"\n(IOMode::Read | IOMode::Write).to_s # => \"Read | Write\"\n\nColor.new(10).to_s # => \"10\"\n```","summary":"Returns a String
representation of this enum member.
Sends a typing notification
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"args_string":"(room_id : String, timeout = 3000, typing = true) : Nil","args_html":"(room_id : String, timeout = 3000, typing = true) : Nil","location":{"filename":"src/caridina/modules/typing.cr","line_number":5,"url":null},"def":{"name":"send_typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"},{"name":"timeout","doc":null,"default_value":"3000","external_name":"timeout","restriction":""},{"name":"typing","doc":null,"default_value":"true","external_name":"typing","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"put(\"/rooms/#{room_id}/typing/#{@user_id}\", data: {typing: typing, timeout: timeout})"}},{"id":"typing(room_id:String,&)-instance-method","html_id":"typing(room_id:String,&)-instance-method","name":"typing","doc":"Keeps sending a typing notification while the block runs.\n\nThe notification is sent every 30 seconds.\nOnce the block ends, it sends a last call to stop the notification typing.","summary":"Keeps sending a typing notification while the block runs.
","abstract":false,"args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"args_string":"(room_id : String, &)","args_html":"(room_id : String, &)","location":{"filename":"src/caridina/modules/typing.cr","line_number":19,"url":null},"def":{"name":"typing","args":[{"name":"room_id","doc":null,"default_value":"","external_name":"room_id","restriction":"String"}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":null,"return_type":"","visibility":"Public","body":"channel = Channel(Nil).new\nspawn do\n timeout = 30000\n send_typing(room_id, timeout: timeout)\n loop do\n select\nwhen channel.receive?\n send_typing(room_id, typing: false)\n break\nwhen timeout(timeout.milliseconds)\n send_typing(room_id, timeout: timeout)\nend\n\n end\nend\nyield\nchannel.close\n"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses","path":"Caridina/Responses.html","kind":"module","full_name":"Caridina::Responses","name":"Responses","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Filter","path":"Caridina/Responses/Filter.html","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/filter.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"filter_id:String-instance-method","html_id":"filter_id:String-instance-method","name":"filter_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/filter.cr","line_number":5,"url":null},"def":{"name":"filter_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@filter_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Response","path":"Caridina/Responses/Response.html","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response","abstract":true,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[{"html_id":"caridina/Caridina/Responses/Filter","kind":"struct","full_name":"Caridina::Responses::Filter","name":"Filter"},{"html_id":"caridina/Caridina/Responses/Send","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send"},{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},{"html_id":"caridina/Caridina/Responses/WhoAmI","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI"}],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/base.cr","line_number":3,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Send","path":"Caridina/Responses/Send.html","kind":"struct","full_name":"Caridina::Responses::Send","name":"Send","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/send.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"event_id:String-instance-method","html_id":"event_id:String-instance-method","name":"event_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/send.cr","line_number":5,"url":null},"def":{"name":"event_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@event_id"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync","path":"Caridina/Responses/Sync.html","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":6,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"next_batch:String-instance-method","html_id":"next_batch:String-instance-method","name":"next_batch","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/sync.cr","line_number":38,"url":null},"def":{"name":"next_batch","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@next_batch"}},{"id":"rooms:Rooms?-instance-method","html_id":"rooms:Rooms?-instance-method","name":"rooms","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Rooms?","args_html":" : Rooms?","location":{"filename":"src/caridina/responses/sync.cr","line_number":39,"url":null},"def":{"name":"rooms","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Rooms | ::Nil","visibility":"Public","body":"@rooms"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Responses/Sync/InvitedRoom","path":"Caridina/Responses/Sync/InvitedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::InvitedRoom","name":"InvitedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":27,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite_state:InviteState-instance-method","html_id":"invite_state:InviteState-instance-method","name":"invite_state","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : InviteState","args_html":" : InviteState","location":{"filename":"src/caridina/responses/sync.cr","line_number":29,"url":null},"def":{"name":"invite_state","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"InviteState","visibility":"Public","body":"@invite_state"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/InviteState","path":"Caridina/Responses/Sync/InviteState.html","kind":"struct","full_name":"Caridina::Responses::Sync::InviteState","name":"InviteState","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":33,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::StrippedState)-instance-method","html_id":"events:Array(Events::StrippedState)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::StrippedState)","args_html":" : Array(Events::StrippedState)","location":{"filename":"src/caridina/responses/sync.cr","line_number":35,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::StrippedState)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/JoinedRoom","path":"Caridina/Responses/Sync/JoinedRoom.html","kind":"struct","full_name":"Caridina::Responses::Sync::JoinedRoom","name":"JoinedRoom","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":15,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"timeline:Timeline-instance-method","html_id":"timeline:Timeline-instance-method","name":"timeline","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Timeline","args_html":" : Timeline","location":{"filename":"src/caridina/responses/sync.cr","line_number":17,"url":null},"def":{"name":"timeline","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Timeline","visibility":"Public","body":"@timeline"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Rooms","path":"Caridina/Responses/Sync/Rooms.html","kind":"struct","full_name":"Caridina::Responses::Sync::Rooms","name":"Rooms","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":8,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"invite:Hash(String,InvitedRoom)-instance-method","html_id":"invite:Hash(String,InvitedRoom)-instance-method","name":"invite","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, InvitedRoom)","args_html":" : Hash(String, InvitedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":11,"url":null},"def":{"name":"invite","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, InvitedRoom)","visibility":"Public","body":"@invite"}},{"id":"join:Hash(String,JoinedRoom)-instance-method","html_id":"join:Hash(String,JoinedRoom)-instance-method","name":"join","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Hash(String, JoinedRoom)","args_html":" : Hash(String, JoinedRoom)","location":{"filename":"src/caridina/responses/sync.cr","line_number":10,"url":null},"def":{"name":"join","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Hash(String, JoinedRoom)","visibility":"Public","body":"@join"}}],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Responses/Sync/Timeline","path":"Caridina/Responses/Sync/Timeline.html","kind":"struct","full_name":"Caridina::Responses::Sync::Timeline","name":"Timeline","abstract":false,"superclass":{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses/Sync","kind":"struct","full_name":"Caridina::Responses::Sync","name":"Sync"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/sync.cr","line_number":21,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"events:Array(Events::Event)-instance-method","html_id":"events:Array(Events::Event)-instance-method","name":"events","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Events::Event)","args_html":" : Array(Events::Event)","location":{"filename":"src/caridina/responses/sync.cr","line_number":23,"url":null},"def":{"name":"events","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Events::Event)","visibility":"Public","body":"@events"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Responses/WhoAmI","path":"Caridina/Responses/WhoAmI.html","kind":"struct","full_name":"Caridina::Responses::WhoAmI","name":"WhoAmI","abstract":false,"superclass":{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},"ancestors":[{"html_id":"caridina/Caridina/Responses/Response","kind":"struct","full_name":"Caridina::Responses::Response","name":"Response"},{"html_id":"caridina/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"caridina/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Responses","kind":"module","full_name":"Caridina::Responses","name":"Responses"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","args_html":"(pull : JSON::PullParser)","location":{"filename":"src/caridina/responses/whoami.cr","line_number":4,"url":null},"def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"new_from_json_pull_parser(pull)"}}],"instance_methods":[{"id":"user_id:String-instance-method","html_id":"user_id:String-instance-method","name":"user_id","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","args_html":" : String","location":{"filename":"src/caridina/responses/whoami.cr","line_number":5,"url":null},"def":{"name":"user_id","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String","visibility":"Public","body":"@user_id"}}],"macros":[],"types":[]}]},{"html_id":"caridina/Caridina/Syncer","path":"Caridina/Syncer.html","kind":"class","full_name":"Caridina::Syncer","name":"Syncer","abstract":false,"superclass":{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"caridina/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina","kind":"module","full_name":"Caridina","name":"Caridina"},"doc":"This object allow you to register listeners to be executed when some events\nare received.\n\nThis avoid you to have to parse the whole `Responses::Sync`.\nHowever `#process_response` must be called with a `Responses::Sync` manually.\nThis allow you to control precisely when you want to handle events.\n\n```\nsyncer = Caridina::Syncer.new\nsyncer.on(Caridina::Events::Message) do |event|\n # TODO: actually do something\nend\n\nsyncer.process_response(sync)\n```\n\nEvents sent to listeners are `Events::Event` objects.\nYou should use a type restriction in order to access all their fields.","summary":"This object allow you to register listeners to be executed when some events are received.
","class_methods":[],"constructors":[],"instance_methods":[{"id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,&listener:EventListener):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"args_string":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, &listener : EventListener) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":52,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""}],"double_splat":null,"splat_index":null,"yields":0,"block_arg":{"name":"listener","doc":null,"default_value":"","external_name":"listener","restriction":"EventListener"},"return_type":"Nil","visibility":"Public","body":"on(event_type, source, listener)"}},{"id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","html_id":"on(event_type:Events::Event.class,source=Source::All,listener:EventListener?=nil):Nil-instance-method","name":"on","doc":null,"summary":null,"abstract":false,"args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"args_string":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","args_html":"(event_type : Events::Event.class, source = Source::All, listener : EventListener? = nil) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":56,"url":null},"def":{"name":"on","args":[{"name":"event_type","doc":null,"default_value":"","external_name":"event_type","restriction":"Events::Event.class"},{"name":"source","doc":null,"default_value":"Source::All","external_name":"source","restriction":""},{"name":"listener","doc":null,"default_value":"nil","external_name":"listener","restriction":"EventListener | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if !listener.nil?\n if !(@listeners.has_key?(event_type))\n @listeners[event_type] = Array(Tuple(EventListener, Source)).new\n end\n @listeners[event_type] << {listener, source}\nend"}},{"id":"process_response(sync:Responses::Sync):Nil-instance-method","html_id":"process_response(sync:Responses::Sync):Nil-instance-method","name":"process_response","doc":null,"summary":null,"abstract":false,"args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"args_string":"(sync : Responses::Sync) : Nil","args_html":"(sync : Responses::Sync) : Nil","location":{"filename":"src/caridina/syncer.cr","line_number":32,"url":null},"def":{"name":"process_response","args":[{"name":"sync","doc":null,"default_value":"","external_name":"sync","restriction":"Responses::Sync"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Nil","visibility":"Public","body":"if rooms = sync.rooms\n rooms.join.each do |room_id, room|\n room.timeline.events.each do |event|\n if event = event.as?(Events::RoomEvent)\n event.room_id = room_id\n dispatch(event, Source::JoinedRooms)\n end\n end\n end\n rooms.invite.each do |room_id, room|\n room.invite_state.events.each do |event|\n event.room_id = room_id\n dispatch(event, Source::InvitedRooms)\n end\n end\nend"}}],"macros":[],"types":[{"html_id":"caridina/Caridina/Syncer/EventListener","path":"Caridina/Syncer/EventListener.html","kind":"alias","full_name":"Caridina::Syncer::EventListener","name":"EventListener","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"caridina","program":false,"enum":false,"alias":true,"aliased":"Proc(Caridina::Events::Event, Caridina::Syncer::Source, Nil)","aliased_html":"Caridina::Events::Event, Caridina::Syncer::Source -> Nil","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"caridina/Caridina/Syncer/Source","path":"Caridina/Syncer/Source.html","kind":"enum","full_name":"Caridina::Syncer::Source","name":"Source","abstract":false,"superclass":null,"ancestors":[{"html_id":"caridina/Enum","kind":"struct","full_name":"Enum","name":"Enum"},{"html_id":"caridina/Comparable","kind":"module","full_name":"Comparable","name":"Comparable"},{"html_id":"caridina/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"caridina/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[],"repository_name":"caridina","program":false,"enum":true,"alias":false,"aliased":null,"aliased_html":null,"const":false,"constants":[{"id":"InvitedRooms","name":"InvitedRooms","value":"1","doc":null,"summary":null},{"id":"JoinedRooms","name":"JoinedRooms","value":"2","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"caridina/Caridina/Syncer","kind":"class","full_name":"Caridina::Syncer","name":"Syncer"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[{"id":"invited_rooms?-instance-method","html_id":"invited_rooms?-instance-method","name":"invited_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":26,"url":null},"def":{"name":"invited_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(InvitedRooms)"}},{"id":"joined_rooms?-instance-method","html_id":"joined_rooms?-instance-method","name":"joined_rooms?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":27,"url":null},"def":{"name":"joined_rooms?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"self.includes?(JoinedRooms)"}},{"id":"none?-instance-method","html_id":"none?-instance-method","name":"none?","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","args_html":"","location":{"filename":"src/caridina/syncer.cr","line_number":25,"url":null},"def":{"name":"none?","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"value == 0"}}],"macros":[],"types":[]}]}]}]}}) \ No newline at end of file diff --git a/docs/toplevel.html b/docs/toplevel.html index c4bbf73..c493f64 100644 --- a/docs/toplevel.html +++ b/docs/toplevel.html @@ -4,7 +4,7 @@ - + @@ -13,7 +13,7 @@ -