Use #public_send for attribute assignment