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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
id(name : String, url : String | Nil)
SourceInstance methods
all_time
Sourceall_time=(all_time : Float64)
Sourceclone
Sourcecopy_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)
Sourcecurrency
Sourcecurrency=(currency : String | Nil)
Sourceid
Sourcelast_payment
Sourcelast_payment=(last_payment : Float64)
Sourcelisted=(listed : Bool)
Sourcelisted?
Sourcelogo
Sourcelogo=(logo : String | Nil)
SourceMerge this sponsor with the given sponsor. Requires that the name is the same
Returns the last payment and its time
If any is nil, then the other is used. Otherwise, the most recent one is used.
name
Sourcename=(name : String)
Sourceoverrides
Sourceoverrides=(overrides : String | Nil)
Sourcesince
Sourcesince=(since : Time)
Sourcetime_last_payment
Sourcetime_last_payment=(time_last_payment : Time | Nil)
Sourceto_json(builder : JSON::Builder)
Sourceupdate_all_time!(now)
Sourceurl
Sourceurl=(url : String | Nil)
Source