title: Equivalent of PHPs -> Character in Ruby
body: <p>I'm trying to convert a PHP script to pure Ruby code.</p>
  
  <p>I have a structure like this in PHP:</p>
  
  <pre><code>$basic=$r-&gt;IDRequestResult-&gt;RequestResult-&gt;PersonInfo-&gt;BasicInfo;
  $result['person']['FirstName']=$basic-&gt;firstname;
  $result['person']['LastName']=$basic-&gt;lastname;
  </code></pre>
  
  <p>I'm stuck with this structure and <code>-&gt;</code> characters are confusing for me.</p>
  
  <p>What is the equivalent of <code>-&gt;</code> character in Ruby and how can I create the similar of this structure in Ruby?</p>
  
  <p>Thanks in advance.</p>