Raise ArgumentError if argument not respond to to_hash method