struct

Sponsor

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(name : String, url : String | Nil, logo : String | Nil, last_payment : Float64, all_time : Float64, currency : String | Nil, since : Time, overrides : String | Nil, time_last_payment : Time | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

id(name : String, url : String | Nil)
Source

Instance methods

all_time
Source
all_time=(all_time : Float64)
Source
clone
Source
copy_with(name _name = @name, url _url = @url, logo _logo = @logo, last_payment _last_payment = @last_payment, all_time _all_time = @all_time, currency _currency = @currency, since _since = @since, overrides _overrides = @overrides, time_last_payment _time_last_payment = @time_last_payment)
Source
currency
Source
currency=(currency : String | Nil)
Source
last_payment
Source
last_payment=(last_payment : Float64)
Source
listed=(listed : Bool)
Source
listed?
Source
logo
Source
logo=(logo : String | Nil)
Source
merge(other : Sponsor) : Sponsor

Merge this sponsor with the given sponsor. Requires that the name is the same

Source
merge_last_payment(other : Sponsor) : Tuple(Float64, Time | Nil)

Returns the last payment and its time

Source
merge_url(other : Sponsor) : String | Nil

If any is nil, then the other is used. Otherwise, the most recent one is used.

Source
name
Source
name=(name : String)
Source
overrides
Source
overrides=(overrides : String | Nil)
Source
since
Source
since=(since : Time)
Source
time_last_payment
Source
time_last_payment=(time_last_payment : Time | Nil)
Source
to_json(builder : JSON::Builder)
Source
update_all_time!(now)
Source
url=(url : String | Nil)
Source