struct MonthlyQuotaPace::Pace

Defined in:

monthly_quota_pace.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(month : MonthlyQuotaPace::Month, quota : Int64, today : Int32, sent : Int128, last_k : Int32, last_sum : Int128, outside : Int32, after : Int32) #

[View source]

Instance Method Detail

def after : Int32 #

[View source]
def days_in_month : Int32 #

[View source]
def days_left : Int32 #

[View source]
def last_k : Int32 #

[View source]
def last_sum : Int128 #

[View source]
def month : Month #

[View source]
def outside : Int32 #

[View source]
def quota : Int64 #

[View source]
def quota_left : Int128 #

[View source]
def run_out_day : Int128 | Nil #

Smallest day number d with sent / today * d >= quota, or nil when nothing was sent. It can be a day that has already passed.


[View source]
def sent : Int128 #

[View source]
def today : Int32 #

[View source]