Fix issue with population of attributes

  Instance attributes for resources would only be populated on the
  first instantiation of the class.
  The same happened to the getter methods for these attributes.