Permalink
Browse files

Merge pull request #29 from tbhockey/patch-1

Adds code for calling Component by ID
  • Loading branch information...
2 parents 550601d + 5d69aab commit 16e83d72b44ee3841354e753d20a8b8849b4582c @shayfrendt shayfrendt committed Oct 27, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 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 16e83d7

Please sign in to comment.