Get and set attributes using hash-style accessors