Sha256: 39dae51679b62458468aacc37d73120edf470fd04cdc40a0ec39315082a493ae
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
module Chargify class Customer < Base include ResponseHelper def self.find_by_reference(reference) find(:one, :from => :lookup, :params => {:reference => reference}) end class Subscription < Base self.prefix = "/customers/:customer_id/" end def subscriptions(params = {}) params.merge!({:customer_id => self.id}) Subscription.find(:all, :params => params) end def payment_profiles(params = {}) params.merge!({:customer_id => self.id}) PaymentProfile.find(:all, :params => params) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chargify_api_ares-1.3.4 | lib/chargify_api_ares/resources/customer.rb |