Spreedly::Resource
Returns all of the subscription plans defined in your site.
# File lib/spreedly.rb, line 256 256: def self.all 257: Spreedly.get('/subscription_plans.xml')['subscription_plans'].collect{|data| new(data)} 258: end
Returns the subscription plan with the given id.
# File lib/spreedly.rb, line 261 261: def self.find(id) 262: all.detect{|e| e.id.to_s == id.to_s} 263: end
Convenience method for determining if this plan is a free trial plan or not.
# File lib/spreedly.rb, line 266 266: def trial? 267: (plan_type == 'free_trial') 268: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.