class SleeperRb::Resources::League::ScoringSettings

Scoring settings for a League instance

Constants

FIELDS

rubocop:disable Naming/VariableNumber

Attributes

blk_kick[R]
def_st_ff[R]
def_st_fum_rec[R]
def_st_td[R]
def_td[R]
ff[R]
fgm_0_19[R]
fgm_20_29[R]
fgm_30_39[R]
fgm_40_49[R]
fgm_50p[R]
fgmiss[R]
fum[R]
fum_lost[R]
fum_rec[R]
fum_rec_td[R]
int[R]
pass_2pt[R]
pass_int[R]
pass_td[R]
pass_yd[R]
pts_allow_0[R]
pts_allow_14_20[R]
pts_allow_1_6[R]
pts_allow_21_27[R]
pts_allow_28_34[R]
pts_allow_35p[R]
pts_allow_7_13[R]
rec[R]
rec_2pt[R]
rec_td[R]
rec_yd[R]
rush_2pt[R]
rush_td[R]
rush_yd[R]
sack[R]
safe[R]
st_d[R]
st_ff[R]
st_fum_rec[R]
xpm[R]
xpmiss[R]

Public Instance Methods

half_ppr?() click to toggle source

@return [Boolean] If league uses Half-PPR scoring

# File lib/sleeper_rb/resources/league/scoring_settings.rb, line 160
def half_ppr?
  rec > 0.0 && rec < 1.0
end
ppr?() click to toggle source

@return [Boolean] If league uses PPR scoring

# File lib/sleeper_rb/resources/league/scoring_settings.rb, line 154
def ppr?
  rec.to_i == 1
end
standard?() click to toggle source

@return [Boolean] If league uses Standard (0 PPR) scoring

# File lib/sleeper_rb/resources/league/scoring_settings.rb, line 166
def standard?
  rec.zero?
end