Add public method get_all_attributes()

Added a public method cause sometimes you may want to get the array containing all the attributtes.