class

Circed::Repositories::ChannelRepository

Inherits Circed::Core::Repository / Enumerable / Reference / Object

Instance methods

[]=(id : String, entity : Domain::Channel) : Domain::Channel
Source
[]?(id : String) : Domain::Channel | Nil
Source
add_member(channel_name : String, nickname : String, modes : Set(Char) = Set(Char).new) : Nil
Source
clear
Source
create_channel(name : String) : Domain::Channel

Channel-specific operations

Source
delete(id : String) : Domain::Channel | Nil
Source
each

Must yield this collection's elements to the block.

Source
each_user_channel(nickname : String, & : Domain::Channel -> ) : Nil

Query methods

Source
find_user_channel_names(nickname : String) : Array(String)
Source
find_user_channels(nickname : String) : Array(Domain::Channel)
Source
part_user(channel_name : String, nickname : String) : Bool
Source
remove_user_from_all_channels(nickname : String) : Set(String)

Bulk operations

Source
rename_member(old_nickname : String, new_nickname : String) : Set(String)
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
user_in_channel?(channel_name : String, nickname : String) : Bool
Source