OpenCollective::MemberHistory
Inherits Reference < Object
Constructors
new(name : String, type : String, role : String, is_active : Bool, twitter : Nil | String, github : Nil | String, website : Nil | String, image : Nil | String, total_donated : Float64, last_transaction_amount : Float64, created_at : Time, last_transaction_at : Time)
Used by load_all to rebuild an instance from a DB row.
new(member : Member)
SourceClass methods
load_all(db : DB::Database) : Hash(String, MemberHistory)
SourceInstance methods
created_at
Sourcecreated_at=(created_at : Time)
Sourcegithub
Sourcegithub=(github : String | Nil)
Sourceimage
Sourceimage=(image : String | Nil)
Sourceis_active
Sourceis_active=(is_active : Bool)
Sourcelast_transaction_amount
Sourcelast_transaction_amount=(last_transaction_amount : Float64)
Sourcelast_transaction_at
Sourcelast_transaction_at=(last_transaction_at : Time)
Sourcename
Sourcename=(name : String)
Sourcerecord_transaction(db : DB::Database)
Records the observed transaction amount for the calendar month, keyed so at most one entry exists per member per month. First write wins.
role
Sourcerole=(role : String)
Sourcesave(db : DB::Database)
Sourcetotal_donated
Sourcetotal_donated=(total_donated : Float64)
Sourcetwitter
Sourcetwitter=(twitter : String | Nil)
Sourcetype
Sourcetype=(type : String)
Sourceupdate(member : Member)
Sourcewebsite
Sourcewebsite=(website : String | Nil)
Source