slice
public
Returns a hash of the given
methods with their names as keys and returned values as values.
topic = Topic.new(title: "Budget", author_name: "Jason")
topic.slice(:title, :author_name)
# File activerecord/lib/active_record/core.rb, line 593