title: Access parameter from a resource defined using create_resources
body: <p>I would like to know if it is possible to access a parameter from a class being instantiated using the create_resources function. I want to use that parameter in other class to conditionally install some things or not.</p>
  
  <p>This is my scenario:</p>
  
  <pre><code>define myResource($myParam) { ... }
  
  create_resources(myResource, $hashResources)
  
  $hashResources = { "MyResource1" : { "myParam" : 1 },
                     "MyResource2" : { "myParam" : 2 }
                   }
  
  myFancyPuppetClass($nameOfResource) {
   if(******myParam from the resource defined with name $nameOfResource in the same catalog******) { ... }
  }
  </code></pre>
  
  <p>Is this possible? If it is, how can I do the reference? Thank you!</p>