Browse files

Adds code for calling Component by ID

  • Loading branch information...
1 parent 550601d commit 5d69aab18bddccfc01ec31c46b964e07038f84eb @tbhockey tbhockey committed Oct 27, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 samples/metered_components.rb
View
5 samples/metered_components.rb
@@ -32,4 +32,7 @@
x = Chargify::Usage.find(:last, :params => {:subscription_id => subscription.id, :component_id => component.id})
-puts x.memo == d
+puts x.memo == d
+
+# Call a specific Component by ID
+component = Chargify::ProductFamily::Component.find(component_id, :params => {:product_family_id => product_family_id})

0 comments on commit 5d69aab

Please sign in to comment.