adding #attribute and #attribute= for compatibility with ActiveModel::AttributeMethods