lib/paymill/subscription.rb in paymill-0.1.0 vs lib/paymill/subscription.rb in paymill-0.2.0
- old
+ new
@@ -1,17 +1,9 @@
module Paymill
- class Subscription
- include Paymill::Operations::All
- include Paymill::Operations::Create
+ class Subscription < Base
include Paymill::Operations::Delete
- include Paymill::Operations::Find
+ include Paymill::Operations::Update
attr_accessor :id, :plan, :livemode, :cancel_at_period_end, :created_at, :updated_at,
- :canceled_at, :client
-
- def initialize(attributes = {})
- attributes.each_pair do |key, value|
- instance_variable_set("@#{key}", value)
- end
- end
+ :canceled_at, :client, :trial_start, :trial_end
end
end