Class: Tiltify::Donation

Inherits:
Object
  • Object
show all
Defined in:
lib/tiltify/objects/donation.rb

Instance Method Summary collapse

Methods inherited from Object

#to_ostruct

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(options = {})
  super options

  self.completed_at = Time.at(options["completedAt"].to_s[0..-4].to_i)
end