class

GitHub::SponsorHistory

Inherits Reference < Object

Constructors

new(login : String, name : String, url : Nil | String, logo : Nil | String, since : Time, last_payment : Float64, is_active : Bool)
Source

Class methods

load_all(db : DB::Database) : Hash(String, SponsorHistory)
Source
week_start(now : Time) : Time

Monday of the week containing now, UTC, time-of-day stripped.

Source

Instance methods

is_active
Source
is_active=(is_active : Bool)
Source
last_billed_at
Source
last_billed_at=(last_billed_at : Time)
Source
last_payment
Source
last_payment=(last_payment : Float64)
Source
login
Source
login=(login : String)
Source
logo
Source
logo=(logo : String | Nil)
Source
name
Source
name=(name : String)
Source
record_run(db : DB::Database, now : Time)

Records the observed tier for the calendar week (Monday-anchored)

Source
save(db : DB::Database)
Source
since
Source
since=(since : Time)
Source
total_contributed
Source
total_contributed=(total_contributed : Float64)
Source
update(sponsorship : Sponsorship, now : Time)
Source
url=(url : String | Nil)
Source