lib/paid/plan.rb in paid-1.1.2 vs lib/paid/plan.rb in paid-1.1.3
- old
+ new
@@ -1,15 +1,15 @@
module Paid
class Plan < APIResource
attr_reader :id
attr_reader :object
attr_reader :created_at
+ attr_reader :amount
attr_accessor :name
attr_accessor :description
attr_accessor :interval
attr_accessor :interval_count
- attr_accessor :amount
def self.all(params={}, headers={})
method = APIMethod.new(:get, "/plans", params, headers, self)
APIList.new(self, method.execute, method)
end
@@ -35,13 +35,13 @@
APIResource.register_api_subclass(self, "plan")
@api_attributes = {
:id => { :readonly => true },
:object => { :readonly => true },
:created_at => { :readonly => true },
+ :amount => { :readonly => true },
:name => nil,
:description => nil,
:interval => nil,
- :interval_count => nil,
- :amount => nil,
+ :interval_count => nil
}
end
end