getAttribute for method