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