lib/paymill/subscription.rb in paymill-0.2.2 vs lib/paymill/subscription.rb in paymill-0.3.0

- old
+ new

@@ -1,11 +1,12 @@ module Paymill class Subscription < Base include Paymill::Operations::Delete include Paymill::Operations::Update - attr_accessor :id, :plan, :livemode, :cancel_at_period_end, :canceled_at, :client, :trial_start, :trial_end + attr_accessor :id, :offer, :livemode, :cancel_at_period_end, :canceled_at, :client, :trial_start, :trial_end + # Parses UNIX timestamps and creates Time objects def parse_timestamps super @canceled_at = Time.at(canceled_at) if canceled_at @trial_start = Time.at(trial_start) if trial_start @trial_end = Time.at(trial_end) if trial_end