Class: Chargify::ProductFamily
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- Chargify::ProductFamily
show all
- Includes:
- ResponseHelper
- Defined in:
- lib/chargify_api_ares/resources/product_family.rb
Defined Under Namespace
Classes: Component, Coupon, Product
Class Method Summary
collapse
Instance Method Summary
collapse
#extract_uniqueness_token, #save
Methods inherited from Base
element_name, #to_xml
Class Method Details
.find_by_handle(handle, attributes = {}) ⇒ Object
5
6
7
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 5
def self.find_by_handle(handle, attributes = {})
ProductFamily.find(:one, :from => :lookup, :params => { :handle => handle })
end
|
Instance Method Details
#components(params = {}) ⇒ Object
54
55
56
57
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 54
def components(params = {})
params.merge!({:product_family_id => self.id})
::Chargify::ProductFamily::Component.find(:all, :params => params)
end
|
#coupons(params = {}) ⇒ Object
59
60
61
62
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 59
def coupons(params = {})
params.merge!(:product_family_id => self.id)
::Chargify::ProductFamily::Coupon.find(:all, :params => params)
end
|
#products(params = {}) ⇒ Object
49
50
51
52
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 49
def products(params = {})
params.merge!(:product_family_id => self.id)
::Chargify::ProductFamily::Product.find(:all, :params => params)
end
|