Get and set attributes using hash-style accessors

Something like this?