title: Importing CSV data into a ruby array/variable
body: <p>I am trying to use a CSV as a settings file in a plugin for the SiriProxy project to use wake-on-lan. This project is based on ruby.</p>
  
  <p>So the csv is as follows:</p>
  
  <pre><code>Name, MACAddress
  Desktop, 01-23-45-67-89-ab
  Computer, 02-46-81-02-46-cd
  </code></pre>
  
  <p>and so on...</p>
  
  <p>So what I would like to happen is that when the variable userAction is "Desktop" for instance, then I query the CSV and it returns the MAC address into another variable. I am lost on how to do this. I have seen the csv and faster_csv but do not know how to get those to work like this.</p>
  
  <p>Thanks in advance!</p>