Class: Tiltify::Donation
- Defined in:
- lib/tiltify/objects/donation.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Donation
constructor
A new instance of Donation.
Methods inherited from Object
Constructor Details
#initialize(options = {}) ⇒ Donation
Returns a new instance of Donation.
4 5 6 7 8 |
# File 'lib/tiltify/objects/donation.rb', line 4 def initialize( = {}) super self.completed_at = Time.at(["completedAt"].to_s[0..-4].to_i) end |