class
Circed::Domain::Channel
- Circed::Domain::Channel
- Reference
- Object
Overview
Domain model for IRC channels
Defined in:
circed/domain/entities.crConstant Summary
-
SIMPLE_MODES =
{'i', 'm', 'n', 't', 's', 'p'} -
USER_MODES =
{'o', 'h', 'v'}
Constructors
Class Method Summary
Instance Method Summary
-
#add_ban(ban_mask : String) : Nil
Ban management
-
#add_invite(nickname : String) : Nil
Invite management
- #add_member(nickname : String, user_modes = Set(Char).new) : Nil
- #add_mode(mode : Char) : Nil
- #apply_modes(mode_string : String, params : Array(String), parameter_index : Int32 = 0) : NamedTuple(modes: String, parameter_count: Int32)
- #ban_list : Set(String)
- #ban_list=(ban_list : Set(String))
- #banned?(hostmask : String) : Bool
- #banned?(context : BanMatchContext) : Bool
- #created_at : Time
- #created_at=(created_at : Time)
- #empty? : Bool
- #full? : Bool
- #has_member?(nickname : String) : Bool
- #has_mode?(mode : Char) : Bool
- #has_password? : Bool
- #has_user_limit? : Bool
- #invite_list : Set(String)
- #invite_list=(invite_list : Set(String))
- #invite_only? : Bool
- #invited?(nickname : String) : Bool
- #member_count : Int32
- #member_modes?(nickname : String) : Set(Char) | Nil
- #members : Hash(String, Set(Char))
- #members=(members : Hash(String, Set(Char)))
- #modes : Set(Char)
- #modes=(modes : Set(Char))
- #name : String
- #name=(name : String)
- #password : String | Nil
-
#password=(new_password : String | Nil)
Password management
- #password_matches?(provided_password : String | Nil) : Bool
- #private? : Bool
- #remove_ban(ban_mask : String) : Bool
- #remove_invite(nickname : String) : Bool
- #remove_member(nickname : String) : Bool
- #remove_mode(mode : Char) : Nil
- #rename_member(old_nickname : String, new_nickname : String) : Bool
- #secret? : Bool
- #topic : String | Nil
- #topic=(topic : String | Nil)
- #topic_set_at : Time | Nil
- #topic_set_at=(topic_set_at : Time | Nil)
- #topic_set_by : String | Nil
- #topic_set_by=(topic_set_by : String | Nil)
- #user_limit : Int32 | Nil
-
#user_limit=(limit : Int32 | Nil)
User limit management
- #visible_to?(nickname : String | Nil) : Bool
Constructor Detail
Class Method Detail
Instance Method Detail
def apply_modes(mode_string : String, params : Array(String), parameter_index : Int32 = 0) : NamedTuple(modes: String, parameter_count: Int32)
#