struct SpdRns::Membership
- SpdRns::Membership
- Struct
- Value
- Object
Defined in:
spdrns/membership.crConstant Summary
-
ACTIONS =
[:join, :unjoin, :ready, :unready, :done, :undone, :fail, :forfeit, :desert]
-
State Transitions
Constructors
Class Method Summary
Instance Method Summary
- #desert(race : Race)
- #done(race : Race)
- #done?
- #fail(race : Race)
- #forfeit(race : Race)
- #join(race : Race)
- #ready(race : Race)
- #ready?
- #role : Role
- #role=(role : Role)
- #state : State
- #state=(state : State)
- #time : Time::Span | Nil
- #time=(time : Time::Span | Nil)
- #to(role : Role)
- #to_observer
- #to_participant
- #transition(to new_state : State, from old_states = nil)
- #undone(race : Race)
- #unjoin(race : Race)
- #unready(race : Race)
- #user : User
- #user=(user : User)
Constructor Detail
def self.new(user : SpdRns::User, role : SpdRns::Membership::Role = Role::Observer, state : SpdRns::Membership::State = State::Registered)
#