Glicko.Result.new

You're seeing just the function new, go back to Glicko.Result module for more information.
Link to this function

new(opponent, score)

Specs

new(opponent :: Glicko.Player.t(), score :: score() | score_shortcut()) :: t()

Creates a new result from an opponent and score.

Supports passing either :loss, :draw, or :win as shortcuts.

Link to this function

new(opponent_rating, opponent_rating_deviation, score)

Specs

Creates a new result from an opponent rating, opponent rating deviation and score.

Values provided for the opponent rating and opponent rating deviation must be v2 based.

Supports passing either :loss, :draw, or :win as shortcuts.