method

has_attribute?

has_attribute?(attr_name)
public

Returns true if the given attribute is in the attributes hash