Retrieving rows from polymorphically related tables

1) The above code perfectly prints the values of the attributes
ci_number and ci.content_id from the table, cis.

2) I would like to know how I can print the values of attributes of
from the software_cis or hardware_cis table along the attributes from
the table, cis. A sample output i would like to print based on the
content of tables I presented would be as follows

Same way as you would get at any association: ci.content