How to set stroke attributes

I want to change the stroke’s round corner into straight line through script. But I only find the ‘strokeWidth’ and ‘strokeHeight’ attributes of stroke from http://docu.glyphsapp.com.
Is there any method to list all attributes of stroke?
Please help.

The first step in figuring this out is to print the paths and its attributes.

understand.
Thanks.