class
Circed::Repositories::ChannelRepository
- Circed::Repositories::ChannelRepository
- Reference
- Object
Included Modules
Defined in:
circed/repositories/channel_repository.crInstance Method Summary
- #[]=(id : String, entity : Domain::Channel) : Domain::Channel
- #[]?(id : String) : Domain::Channel | Nil
- #add_member(channel_name : String, nickname : String, modes : Set(Char) = Set(Char).new) : Nil
- #clear : Nil
-
#create_channel(name : String) : Domain::Channel
Channel-specific operations
- #delete(id : String) : Domain::Channel | Nil
-
#each(& : Domain::Channel -> ) : Nil
Must yield this collection's elements to the block.
-
#each_user_channel(nickname : String, & : Domain::Channel -> ) : Nil
Query methods
- #find_user_channel_names(nickname : String) : Array(String)
- #find_user_channels(nickname : String) : Array(Domain::Channel)
- #part_user(channel_name : String, nickname : String) : Bool
-
#remove_user_from_all_channels(nickname : String) : Set(String)
Bulk operations
- #rename_member(old_nickname : String, new_nickname : String) : Set(String)
-
#size : Int32
Returns the number of elements in the collection.
- #user_in_channel?(channel_name : String, nickname : String) : Bool
Instance methods inherited from module Circed::Core::Repository(Circed::Domain::Channel)
[]=(id : String, entity : T) : T
[]=,
[]?(id : String) : T | Nil
[]?,
clear : Nil
clear,
delete(id : String) : T | Nil
delete,
each(& : T -> ) : Nil
each,
size : Int32
size
Instance Method Detail
def each(& : Domain::Channel -> ) : Nil
#
Description copied from module Enumerable(Circed::Domain::Channel)
Must yield this collection's elements to the block.
def size : Int32
#
Description copied from module Enumerable(Circed::Domain::Channel)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4