rest: do not use mattr_accessor method