This was a false positive in Rubocop, but we can avoid it by using the attribute reader method we've just added.