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
24
25
26
27
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 24
def components(params = {})
params.merge!({:product_family_id => self.id})
::Chargify::ProductFamily::Component.find(:all, :params => params)
end
|
#coupons(params = {}) ⇒ Object
29
30
31
32
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 29
def coupons(params = {})
params.merge!(:product_family_id => self.id)
::Chargify::ProductFamily::Coupon.find(:all, :params => params)
end
|
#products(params = {}) ⇒ Object
19
20
21
22
|
# File 'lib/chargify_api_ares/resources/product_family.rb', line 19
def products(params = {})
params.merge!(:product_family_id => self.id)
::Chargify::ProductFamily::Product.find(:all, :params => params)
end
|