Skip to content

Commit

Permalink
Merge pull request #29 from tbhockey/patch-1
Browse files Browse the repository at this point in the history
Adds code for calling Component by ID
  • Loading branch information
shayfrendt committed Oct 27, 2011
2 parents 550601d + 5d69aab commit 16e83d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion samples/metered_components.rb
Expand Up @@ -32,4 +32,7 @@




x = Chargify::Usage.find(:last, :params => {:subscription_id => subscription.id, :component_id => component.id}) 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.