class
Circed::Repositories::UserRepository
- Circed::Repositories::UserRepository
- Reference
- Object
Included Modules
Defined in:
circed/repositories/user_repository.crInstance Method Summary
- #[]=(id : String, entity : Domain::User) : Domain::User
- #[]?(id : String) : Domain::User | Nil
-
#add_client(client : Client) : Nil
Client-specific methods (for local users)
- #change_nickname(old_nickname : String, new_nickname : String) : Bool
- #clear : Nil
- #delete(id : String) : Domain::User | Nil
-
#each(& : Domain::User -> ) : Nil
Must yield this collection's elements to the block.
- #each_client(& : Client -> ) : Nil
- #get_client(nickname : String) : Client | Nil
- #has_client?(nickname : String) : Bool
- #remove_client(nickname : String) : Bool
-
#size : Int32
Returns the number of elements in the collection.
Instance methods inherited from module Circed::Core::Repository(Circed::Domain::User)
[]=(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::User -> ) : Nil
#
Description copied from module Enumerable(Circed::Domain::User)
Must yield this collection's elements to the block.
def size : Int32
#
Description copied from module Enumerable(Circed::Domain::User)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4