Class: Chargify::ProductFamily
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- Chargify::ProductFamily
show all
- 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
Methods inherited from Base
element_name, #to_xml
Class Method Details
.find_by_handle(handle, attributes = {}) ⇒ Object
3
4
5
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 3
def self.find_by_handle(handle, attributes = {})
ProductFamily.find(:one, :from => :lookup, :params => { :handle => handle })
end
|
Instance Method Details
#components(params = {}) ⇒ Object
52
53
54
55
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 52
def components(params = {})
params.merge!({:product_family_id => self.id})
::Chargify::ProductFamily::Component.find(:all, :params => params)
end
|
#coupons(params = {}) ⇒ Object
57
58
59
60
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 57
def coupons(params = {})
params.merge!(:product_family_id => self.id)
::Chargify::ProductFamily::Coupon.find(:all, :params => params)
end
|
#products(params = {}) ⇒ Object
47
48
49
50
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 47
def products(params = {})
params.merge!(:product_family_id => self.id)
::Chargify::ProductFamily::Product.find(:all, :params => params)
end
|