title: How do I turn a string in to a partial class name?
body: <p>I need to loop over a number of preset strings and use those strings as the class name for third-party API calls.</p>
  
  <p>For example, hardcoded I'd do something like this:</p>
  
  <pre><code>Stripe::BalanceTransaction.all
  </code></pre>
  
  <p>But I've got a number of these I need to use as part of generic functions and would like to be able to do something like:</p>
  
  <pre><code>class_name = 'BalanceTransaction'
  Stripe::class_name.all
  </code></pre>
  
  <p>That obviously doesn't work, but not sure what <em>would</em> work.</p>
  
  <p>I'm using Ruby 2.0.0 and Rails 4.0.1 (so ActiveSupport::Inflector and other modules are indeed available for use).</p>