use self instead of #read_attribute
Merge pull request #16704 from ankit1910/use-existing-method

use self instead of #read_attribute