title: Set Javascript Instance Variables programmatically
body: <p>I'm going to be getting an array of objects and want to set instance variables inside of a class based on a property. So if I get this:</p>
  
  <pre><code>ary = [{type: 'walrus', name: 'GorbyPuff'}, {type: 'humanoid', occupation: 'KingSlayer'}]
  </code></pre>
  
  <p>I want to initialize an object where <code>@walrus == ary[0]</code> and <code>@humanoid == ary[1]</code></p>
  
  <p>In Ruby I could user instance_variable_set, but how can this be accomplished in the Javascripts?</p>