Class: Osm::GiftAid::Donation
Instance Attribute Summary collapse
-
#donation_date ⇒ Date
When the payment was made.
Instance Method Summary collapse
-
#<=>(another) ⇒ Object
Compare Payment based on donation_date then note.
-
#initialize ⇒ Object
constructor
Initialize a new RegisterField.
Methods inherited from Model
#<, #<=, #>, #>=, #between?, #changed_attributes, configure, #reset_changed_attributes, #to_i
Constructor Details
#initialize ⇒ Object
Initialize a new RegisterField
|
# File 'lib/osm/giftaid.rb', line 149
|
Instance Attribute Details
#donation_date ⇒ Date
Returns When the payment was made.
140 |
# File 'lib/osm/giftaid.rb', line 140 attribute :donation_date, :type => Date |
Instance Method Details
#<=>(another) ⇒ Object
Compare Payment based on donation_date then note
155 156 157 |
# File 'lib/osm/giftaid.rb', line 155 def <=>(another) return self.donation_date <=> another.try(:donation_date) end |